Created
June 1, 2018 07:39
-
-
Save wojtek1150/182344f5f7a06037e91597dc66b84700 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Store } from '@ngrx/store'; | |
import * as fromStore from '../../store'; | |
export class MyComponent(){ | |
constructor(private store: Store<fromStore.UsersState>) { } | |
loadUsers(){ | |
this.store.dispatch(new fromStore.LoadUsers()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment