1
|
/**
|
2
|
* Created by stefania on 3/21/16.
|
3
|
*/
|
4
|
|
5
|
import { Component } from '@angular/core';
|
6
|
import {ActivatedRoute} from '@angular/router';
|
7
|
|
8
|
@Component({
|
9
|
selector: 'dashboard',
|
10
|
templateUrl: 'dashboard.component.html',
|
11
|
})
|
12
|
|
13
|
export class DashboardComponent {
|
14
|
communityId:string="";
|
15
|
constructor( private route: ActivatedRoute) {}
|
16
|
|
17
|
ngOnInit() {
|
18
|
|
19
|
this.route.queryParams.subscribe(data => {
|
20
|
this.communityId = ((data['communityId'])?data['communityId']:data['community']);
|
21
|
|
22
|
});
|
23
|
|
24
|
}
|
25
|
|
26
|
}
|