Created
March 5, 2021 22:12
-
-
Save bjoerntx/e3bd3da372ebedf70159be49e93f50df to your computer and use it in GitHub Desktop.
This file contains 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 { ApplicationInitStatus, Component, OnInit } from '@angular/core'; | |
import { ActivatedRoute } from '@angular/router'; | |
@Component({ | |
selector: 'app-home', | |
templateUrl: './home.component.html' | |
}) | |
export class HomeComponent implements OnInit { | |
_accessToken: string = ""; | |
constructor(private _routes: ActivatedRoute) { } | |
ngOnInit(): void { | |
this._routes.data.subscribe((response: any) => { | |
this._accessToken = response.token.accessToken; | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment