Configurable host address for document list

- allow application define host address for AlfrescoService
This commit is contained in:
Denys Vuika
2016-04-18 21:20:51 +01:00
parent f39653bf6f
commit fb208c6007
5 changed files with 26 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ import {AuthRouterOutlet} from "./components/AuthRouterOutlet";
import {HomeView} from "./components/home.view";
import {Page1View} from "./components/page1.view";
import {Page2View} from "./components/page2.view";
import {AlfrescoService} from 'ng2-alfresco/components';
@Component({
selector: 'my-app',
@@ -22,8 +23,11 @@ export class AppComponent {
constructor(
public auth: Authentication,
public router: Router
){}
public router: Router,
alfrescoService: AlfrescoService
){
alfrescoService.host = 'http://192.168.99.100:8080';
}
isActive(instruction: any[]): boolean {
return this.router.isRouteActive(this.router.generate(instruction));