mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* add integration 2.0.0 test * update readme * add integration test in travis * restore tsconfig.dev * fix test script travis call * improve script * fix npm run test
19 lines
482 B
TypeScript
19 lines
482 B
TypeScript
import { Component } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
import { AppDefinitionRepresentationModel } from '@alfresco/adf-process-services';
|
|
|
|
@Component({
|
|
selector: 'app-apps',
|
|
templateUrl: './apps.component.html',
|
|
styleUrls: ['./apps.component.css']
|
|
})
|
|
export class AppsComponent {
|
|
|
|
constructor(private router: Router) { }
|
|
|
|
onAppClicked(app: AppDefinitionRepresentationModel) {
|
|
this.router.navigate(['/apps', app.id || 0, 'tasks']);
|
|
}
|
|
|
|
}
|