integrate search new javascript api

This commit is contained in:
Eugenio Romano
2016-07-11 16:58:15 +01:00
parent 8c84bc9be5
commit 0e4a401e7f
7 changed files with 17 additions and 15 deletions

View File

@@ -81,7 +81,7 @@ class SearchDemo implements OnInit {
}
login() {
this.authService.login('admin', 'admin').subscribe(
this.authService.login('admin', 'admin', ['ECM']).subscribe(
token => {
console.log(token);
this.token = token;

View File

@@ -40,7 +40,7 @@ export class AlfrescoSearchService {
rootNodeId: nodeId,
nodeType: 'cm:content'
};
return this.authService.alfrescoApi.search.liveSearchNodes(term, opts);
return this.authService.getAlfrescoApi().search.liveSearchNodes(term, opts);
}
/**