Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 5, 2021 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/e3bd3da372ebedf70159be49e93f50df to your computer and use it in GitHub Desktop.
Save bjoerntx/e3bd3da372ebedf70159be49e93f50df to your computer and use it in GitHub Desktop.
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