SHARE
TWEET

Untitled

a guest Apr 20th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 { }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top