virket-core-contacts
v0.0.11
Published
ionic Contacts core module (interfaces, models, repositories, services, state management and more)
Downloads
3
Maintainers
Readme
Virket's Contacts core module
Contacts module that implements
- Contact types (interfaces)
- Contact Model
- Repository
- Service
- State management (actions, effects, reducers, selectors)
Using your module in an Ionic 5 app
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
...
// Import ContactsCoreModule module
import { ContactsCoreModule } from 'virket-core-contacts/dist/src';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
...
StoreModule.forRoot({}),
EffectsModule.forRoot([]),
ContactsCoreModule.forRoot({
apiUrl: environment.apiUrl,
instanceName: environment.instanceName
}),
...
],
providers: [
...
ContactStore,
...
],
bootstrap: [AppComponent]
})
export class AppModule {}