diff --git a/ng2-components/ng2-alfresco-search/demo/src/main.ts b/ng2-components/ng2-alfresco-search/demo/src/main.ts
index 7d8e53aefa..bed0ba1927 100644
--- a/ng2-components/ng2-alfresco-search/demo/src/main.ts
+++ b/ng2-components/ng2-alfresco-search/demo/src/main.ts
@@ -36,11 +36,14 @@ import {
@Component({
selector: 'alfresco-search-demo',
template: `
-
+
+ Authentication failed to ip {{ host }}
+
`,
styles: [':host > .container {padding: 10px}'],
providers: [ALFRESCO_SEARCH_PROVIDERS],
@@ -53,13 +56,15 @@ class SearchDemo implements OnInit {
public searchTerm: string = 'foo bar';
+ host: string = 'http://192.168.99.100:8080';
+
constructor(
private authService: AlfrescoAuthenticationService,
settings: AlfrescoSettingsService,
translation: AlfrescoTranslationService,
searchService: AlfrescoService) {
- settings.host = 'http://192.168.99.100:8080';
+ settings.host = this.host;
translation.translationInit();
}