Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
- import { AppRoutingModule } from './app-routing.module';
- import { AppComponent } from './app.component';
- import { StoreModule } from '@ngrx/store';
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
- import { CounterModule , counterReducer } from 'my-counter';
- @NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- AppRoutingModule,
- // This code is to initialize the counter, whenever we disapatch an action to update counter, counterReducer will manage the state
- StoreModule.forRoot({ count: counterReducer }),
- BrowserAnimationsModule,
- CounterModule
- ],
- providers: [],
- bootstrap: [AppComponent],
- schemas: [CUSTOM_ELEMENTS_SCHEMA]
- })
- export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement