saschazar21 / ngrx-playground

πŸ“ An Angular project containing an @ngrx store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ngrx Playground

A sample app for demonstrating the extent of @ngrx/store and @ngrx/effects of the @ngrx/platform package on a simple todo list.
Two demo todos are already contained and appear 2 seconds after the initial page loadin.

Prerequisites

Installation

  • git clone https://github.com/saschazar21/ngrx-playground
  • cd ngrx-playground
  • npm start or if Angular CLI is installed: ng serve

Source code

The source code is nothing special and its main purpose is to show how @ngrx/store could be included into a project.
The app was bootstrapped using the ng new command of Angular CLI, the different list components and sub modules were included using the ng generate commmand.

- src
  | - app
    | - demo-content
    | - list          // ListComponent
      | - list-form   // ListFormComponent
      | - list-item   // ListItemComponent

    | - models
    | - shared
      | - material    // sub module for exporting @angular/material
      | - store
        | - actions   // The ngrx actions
        | - effects   // The ngrx effects
        | - reducers  // The ngrx reducers

Used libraries

Issues

Please report any bugs or issues to the issues section.

Contribution

Contributors welcome!
Please fork this repository, open a pull request and drop me a line on twitter.

License

MIT, Sascha Zarhuber, 2017

About

πŸ“ An Angular project containing an @ngrx store


Languages

Language:TypeScript 82.2%Language:JavaScript 6.7%Language:HTML 6.5%Language:CSS 4.6%