- },
- columns: {
- id: {
- title: 'ID',
- type: 'number',
- },
- xAppName: {
- title: 'xApp Name',
- type: 'string',
- },
- xAppType: {
- title: 'xApp Type',
- type: 'string',
- },
- podId: {
- title: 'Pod ID',
- type: 'number',
- },
- k8Status: {
- title: 'k8 Status',
- type: 'string',
- },
- age: {
- title: 'Age',
- type: 'string',
- },
- },
- };
-
- source: LocalDataSource = new LocalDataSource();
-
- constructor(private service: ControlService, private router: Router) {
- const data = this.service.getData();
- this.source.load(data);
- }
-
- view(event): void {
- const url = '/xapp';
- this.router.navigate([url, event]).then( (e) => {
- if (e) {
- console.log(event.data);
- console.log('Navigation is successful!');
- } else {
- console.log('Navigation has failed!');
- }
- });