creately / rxdata

A reactive document database for web browsers
MIT License
11 stars 1 forks source link

Add a static create method on Database class #26

Closed thani-sh closed 7 years ago

thani-sh commented 7 years ago

It'll be more convenient to use with Angular apps with AOT compilation.

{
  providers: [
    { provide: Database, useFactory: Database.create }
  ]
}

Also allows the user to set default options for databases.