vitaliy-bobrov / ngrx-sw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NgRx Star Wars

Instructions:

  1. Clone
  2. Chackout 00-setup
  3. Run yarn
  4. Run yarn start

Steps:

  1. Create app ng new ngrx-sw --prefix ngsw --routing --style scss
  2. Add material ng add @angular/material
  3. Set component schematic CD to "OnPush"
  4. Create heroes module and routed component ng g m heroes --module app.module --route heroes
  5. Generate a few components and service ng g c heroes/search-heroes-box ng g c heroes/heroes-list ng g c heroes/heroes-list-item ng g s heroes/heroes
  6. Add dependencies yarn add @ngrx/{store,effects,entity,store-devtools}
  7. Set ngrx schematics as default - ng config cli.defaultCollection @ngrx/schematics
"@ngrx/schematics:component": {
  "styleext": "scss",
  "changeDetection": "OnPush"
}
  1. Generate root store

About


Languages

Language:TypeScript 76.6%Language:HTML 10.2%Language:JavaScript 8.7%Language:CSS 4.5%