Reactive Event Driven Actions with Firefly Semantics Slice

Image by Ronny Overhate from Pixabay

Scenario

Approach

/**
* Redirect the user to the application
* when the user is authenticated.
* @param route
*/
public onAuthRedirectToApplication(route:string) {this.s.OS.S.IS_AUTHENTICATED.obs.subscribe(auth => {
auth && this.r.navigate([route])
})
}

Brought to You By

Founder of Firefly Semantics Corporation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store