1.0.28 • Published 5 years ago

ng-storex v1.0.28

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

StoreX

Dynamic Store - Beta version

Easy way to manage application state

Get started

install

npm i ng-storex

import

import {Store, StoreX} from 'ng-storex'

Create store

const store  = Store.createStore({  
  header: 'Hello world',  
  user: {  
    name: 'Welcome'  
  }  
});

Now you can watch for changes in component

// observe header changes  
store.header.subscribe(headerChanged => console.log(headerChanged));  
// use as normal value  
console.log(store.header);

and use in template

{{store?.header | async }}  
  
{{store?.user?.name }}

Change as you like

this.store.header = 'change';  
this.store.user = {name: 'all object'};  
this.store.user.name = 'or only value'

Happy coding!

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.22

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.8

6 years ago

1.0.2

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago