Restored view search

Change-Id: Ic994aa0adf22b81ea1a74d8a24db2219154aa698
diff --git a/.gitignore b/.gitignore
index 37f98bc..9169b51 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,9 @@
 .idea/
 .tmp/
+.gitreview
 docs/
 coverage/
 dist/
 node_modules/
 npm-debug.log
-typings/
\ No newline at end of file
+typings/
diff --git a/src/index.ts b/src/index.ts
index 0322608..a4b2714 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -113,6 +113,7 @@
         .then(() => {
           // after setting up dynamic routes, redirect to previous state
           $location.path(lastRoute).search(lastQueryString);
+          $rootScope.$emit('xos.core.modelSetup');
         });
     }