store data using ngrx(redux)
A ngrx store implementation port to use with Angular 7 without the use of local storage
This module works with angular 7.x
Installation
npm install --save ngrxstoredata
Usage
Module:
Import StoreModule
from @ngrx/store
Import reducers
from ngrxstoredata/store/reducers
;; @
Component
- Component 1
;; { } : void // after successfully login or when you wnat to store data let data = name:'vashram' token: 'xxxxx' thisstore;
- Component 2
;;;; public saveData$: Observable<fromSaveSaveDataState>; { thissaveData$ = thisstore; } : void thissaveData$;
Add in tsconfig.json:
include in tsconfig.json
"include": "./src" "node_modules/ngrxstoredata/store"
License
MIT