Chatie / db

Database for Chatie
https://www.chatie.io
Apache License 2.0
0 stars 0 forks source link

Create a `DbModule` for Angular NgModule imports #15

Closed huan closed 6 years ago

huan commented 6 years ago

Currently, we have to use a factory to create the Db dependence injection manually.

import { DbModule } from 'db'
...
@NgModule({
  ...
  imports: [
    ...
    DbModule.forRoot()
  ],
})

See Also

  1. NPM module: apollo-angular
huan commented 6 years ago

Done.

See: https://github.com/Chatie/db/blob/ee8e4db7bed66d7459d2c9ab5b06af317b2ff3d3/src/db-module.ts