Validating form fields on the client
Change-Id: I33a0c2417d73d7974e4dc0c2f9f77f3984508606
diff --git a/src/app/core/header/header.html b/src/app/core/header/header.html
index 3a277e0..5025258 100644
--- a/src/app/core/header/header.html
+++ b/src/app/core/header/header.html
@@ -37,7 +37,7 @@
<input
type="text"
class="form-control"
- placeholder="Search core models"
+ placeholder="Navigate routes (press 'f' to select)"
style="width: 275px"
ng-model="vm.query"
uib-typeahead="state.label for state in vm.states | filter:$viewValue | limitTo:8"
diff --git a/src/app/core/header/header.ts b/src/app/core/header/header.ts
index a7cba72..92d402d 100644
--- a/src/app/core/header/header.ts
+++ b/src/app/core/header/header.ts
@@ -71,6 +71,7 @@
// redirect to selected page
this.routeSelected = (item: IXosNavigationRoute) => {
+ console.log(`go to: ${item.state}`);
this.$state.go(item.state);
this.query = null;
};