Skip to content

Instantly share code, notes, and snippets.

@codeepic
Last active March 1, 2017 15:48
Show Gist options
  • Save codeepic/a02bcef023383ec79b22e725f0d380fb to your computer and use it in GitHub Desktop.
Save codeepic/a02bcef023383ec79b22e725f0d380fb to your computer and use it in GitHub Desktop.
constructor(
private route: ActivatedRoute,
private router: Router,
private dashboardService: DashboardService
){
super();
}
ngOnInit(){
let sub = this.route.params.subscribe(params => {
this.loading = true;
let id = +params['id'];
this.getDashboard(id);
});
this.addSubscription(sub);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment