Services and Components of avLight.App reusable for more projekts and products in ArriView style.
npm install --save https://github.com/dff-solutions/avPro.App.Core.git
App core makes use of ngrx. The store should be configured as feature within the app module.
import { StoreModule } from "@ngrx/store";
import { EffectsModule } from "@ngrx/effects";
import { STORE_FEATURE_CORE, reducers, effects } from "@dff/avpro-app-core";
@NgModule({
imports: [
StoreModule.forRoot({}), // or whatever configuration you like
StoreModule.forFeature(STORE_FEATURE_CORE, reducers),
EffectsModule.forRoot([]),
EffectsModule.forFeature(effects),
]
})
export class AppModule {}
To load and store data from IndexedDB optional IdbEffects
can be used.
These effects are not use by default.
If you like to use these effects add them in your AppModule
import { effects, IdbEffects } from "@dff/avpro-app-core";
EffectsModule.forFeature([
...effects,
IdbEffects
]),