2018-02-12 12:47:49 +01:00
|
|
|
|
|
|
|
import { Component, ViewChild, OnInit } from '@angular/core';
|
|
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
@Component({
|
|
|
|
selector: 'claims',
|
2018-02-28 13:31:04 +01:00
|
|
|
template: ` <claims-admin fetchBy="Context" [fetchId]=communityPid>
|
2018-02-12 12:47:49 +01:00
|
|
|
</claims-admin>`,
|
|
|
|
})
|
|
|
|
|
|
|
|
export class ClaimsComponent implements OnInit {
|
|
|
|
|
2018-02-28 13:31:04 +01:00
|
|
|
communityPid:string;
|
2018-02-12 12:47:49 +01:00
|
|
|
ngOnInit() {
|
|
|
|
|
2018-02-28 13:31:04 +01:00
|
|
|
this.route.queryParams.subscribe(params => {
|
|
|
|
this.communityPid = params['community'];
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2018-02-12 12:47:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
constructor(private route: ActivatedRoute) {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|