Created
November 28, 2018 15:59
-
-
Save ngohungphuc/4c71819cdd027d18cc4dd4b31f671501 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
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