Angular API#

CacheModule#

Kind: global class

new CacheModule()#

Cache Module

Example

import { CacheModule } from '@rebased/angular';
//...
CacheModule.forRoot({
dbName: 'kitty',
dbStore: 'app'
})
//...

FirebaseModule#

Kind: global class

new FirebaseModule()#

Firebase Module

Example

import { FirebaseModule } from '@rebased/angular';
//...
FirebaseModule.forRoot({
config: FIREBASE_CONFIG, // from firebase console
persistence: true // firestore setting
})
//...

ParseModule#

Kind: global class

new ParseModule()#

Parse Module

Example

import { ParseModule } from '@rebased/angular';
//...
ParseModule.forRoot({
serverURL: 'http://parse-endpoint.com',
appID: 'Parse-APP-ID',
masterKey: 'Parse-master-key'
})
//...

RebasedModule#

Kind: global class

new RebasedModule()#

Rebased Module

Example

import { RebasedModule } from '@rebased/angular';
//...
RebasedModule.forRoot({
driver: 'firestore', // define default data driver
silent: false, // whether show logs
timestampEnabled: true // auto save timestamp
timestampCreated: 'createdAt',
timestampUpdated: 'updatedAt'
})
//...

StateModule#

Kind: global class

new StateModule()#

State Module

Example

import { RebasedModule } from '@rebased/angular';
//...
RebasedModule.forRoot({
production: true,
trace: false,
reducers: {...},
})
//...