Skip to content

Instantly share code, notes, and snippets.

@ngohungphuc
Created November 28, 2018 15:59
Show Gist options
  • Save ngohungphuc/4c71819cdd027d18cc4dd4b31f671501 to your computer and use it in GitHub Desktop.
Save ngohungphuc/4c71819cdd027d18cc4dd4b31f671501 to your computer and use it in GitHub Desktop.
constructor(
private fb: FormBuilder,
private store: Store<AuthState>,
private portalStore: Store<PortalState>) {}
ngOnInit() {
this
.store
.select(selectIsLoginState)
.subscribe(res => {
this.isLogging$ = res;
});
this.portalStore.select(selectCommentState).subscribe(res => {
console.log(res);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment