1
|
import {Component, Input, OnInit} from "@angular/core";
|
2
|
|
3
|
@Component({
|
4
|
selector: 'dashboard-users',
|
5
|
templateUrl: 'dashboard-users.component.html'
|
6
|
})
|
7
|
export class DashboardUsersComponent implements OnInit{
|
8
|
|
9
|
@Input()
|
10
|
public id: string;
|
11
|
@Input()
|
12
|
public type: string;
|
13
|
@Input()
|
14
|
public name: string;
|
15
|
@Input()
|
16
|
public link: string;
|
17
|
public tab: "managers" | "members" = 'managers';
|
18
|
|
19
|
constructor() {
|
20
|
}
|
21
|
|
22
|
ngOnInit() {
|
23
|
}
|
24
|
|
25
|
changeTab(tab: "managers" | "members") {
|
26
|
this.tab = tab;
|
27
|
}
|
28
|
}
|