NgRx Schematics demo
This project was generated with Angular CLI version 6.0.8.
Create new project:
ng new swkb -p=swkb --style=scss
cd swkb
Create basic structure:
ng g module heroes
ng g component heroes/hero-list
ng g component heroes/hero
ng g interface heroes/models/Hero
ng g service heroes/swapi
ng add @angular/material
Add NgRx & Schematics
- ng add @ngrx/store
- ng add @ngrx/effects
- ng add @ngrx/store-devtools
yarn add -g @angular-devkit/schematics-cli
schematics schematic --name=fetch-actions
cd fetch-actions
yarn
yarn build
npm link
cd <app-folder>
npm link fetch-actions
ng g fetch-actions:fa heroes/Heroes