Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. import { BrowserModule } from '@angular/platform-browser';
  2. import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
  3.  
  4. import { AppRoutingModule } from './app-routing.module';
  5. import { AppComponent } from './app.component';
  6. import { StoreModule } from '@ngrx/store';
  7. import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
  8. import { CounterModule , counterReducer } from 'my-counter';
  9.  
  10. @NgModule({
  11. declarations: [
  12. AppComponent
  13. ],
  14. imports: [
  15. BrowserModule,
  16. AppRoutingModule,
  17. // This code is to initialize the counter, whenever we disapatch an action to update counter, counterReducer will manage the state
  18. StoreModule.forRoot({ count: counterReducer }),
  19. BrowserAnimationsModule,
  20. CounterModule
  21. ],
  22. providers: [],
  23. bootstrap: [AppComponent],
  24. schemas: [CUSTOM_ELEMENTS_SCHEMA]
  25. })
  26. export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement