mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2147] test upgrade 2.0.0 (#2902)
* 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
This commit is contained in:
18
integration/base_ver_2_app/src/app/apps/apps.component.ts
Normal file
18
integration/base_ver_2_app/src/app/apps/apps.component.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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']);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user