1.0.28 • Published 4 years ago

ng-storex v1.0.28

Weekly downloads
-
License
MIT
Repository
-
Last release
4 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

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.22

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.2

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago