]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | import { Component, OnDestroy, OnInit } from '@angular/core'; |
2 | import { ActivatedRoute } from '@angular/router'; | |
3 | ||
11fdf7f2 TL |
4 | @Component({ |
5 | selector: 'cd-rgw-501', | |
6 | templateUrl: './rgw-501.component.html', | |
7 | styleUrls: ['./rgw-501.component.scss'] | |
8 | }) | |
9 | export class Rgw501Component implements OnInit, OnDestroy { | |
11fdf7f2 TL |
10 | message = 'The Object Gateway service is not configured.'; |
11 | routeParamsSubscribe: any; | |
12 | ||
f6b5b4d7 | 13 | constructor(private route: ActivatedRoute) {} |
11fdf7f2 TL |
14 | |
15 | ngOnInit() { | |
11fdf7f2 TL |
16 | this.routeParamsSubscribe = this.route.params.subscribe((params: { message: string }) => { |
17 | this.message = params.message; | |
18 | }); | |
19 | } | |
20 | ||
21 | ngOnDestroy() { | |
22 | this.routeParamsSubscribe.unsubscribe(); | |
23 | } | |
24 | } |