Skip to content

Instantly share code, notes, and snippets.

@jonathanwoahn
Last active June 4, 2019 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanwoahn/c88c38abbbf6b8c02d462d0b81e0eb05 to your computer and use it in GitHub Desktop.
Save jonathanwoahn/c88c38abbbf6b8c02d462d0b81e0eb05 to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppComponent } from './app.component';
import { FlexLayoutModule } from '@angular/flex-layout';
import { MatCardModule, MatInputModule, MatListModule } from '@angular/material';
import { DynamicNgrxModule, DynamicStoreConfig } from 'dynamic-ngrx';
const config: DynamicStoreConfig = {
entities: [{ entity: 'Todo' }],
providers: [],
};
export interface Todo {
id: string;
text: string;
}
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
FlexLayoutModule,
MatCardModule,
MatInputModule,
MatListModule,
DynamicNgrxModule.forRoot(config),
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment