aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/widgets.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets.js b/src/widgets.js
index ea76cfc2..6482f455 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -1074,7 +1074,8 @@ angularWidget('ng:view', function(element) {
} else {
element.html('');
}
- });
+ })(); //initialize the state forcefully, it's possible that we missed the initial
+ //$route#onChange already
// note that this propagates eval to the current childScope, where childScope is dynamically
// bound (via $route.onChange callback) to the current scope created by $route