You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Developing an application and tried with the latest stable and unstable version.
The application loads fine on all browser minus IE 9 and IE8 (and maybe lower)
Trying to debug it it looks like the $locationChangeSuccess broadcast is never received by the object listening for it $rootScope.$on('$locationChangeSuccess', updateRoute);
and thus never calls the updateRoute method.
The function afterLocationChange is called though.
I haven't been able to debug thanks to the sucky IE10 debugger (doesn't break on breakpoints I set in angularJS), so used console.log outputs.
I am bootstraping manually and I have a specific way of routing, not using ng-views but ng-include / ng-switch and adding to the routes an action property which will then be evaluated by the main controller and injected into the scope which the views are using for the ng-switch.
I don't know if it's related to the way I am routing things, as it really appears that the updateRoute is never called, but I here is the code anyways, in case I am wrong.
function(LOGIN){LOGIN.controller('controllerApplication',['$scope','$route',function($scope,$route){varself=this;// Update the rendering of the page.this.render=function(){// Pull the "action" value out of the currently selected route.varrenderAction=$route.current.action;// Also, let's update the render path so that we can start conditionally rendering parts of the page.varrenderPath=renderAction.split(".");// Reset the boolean used to set the css class for the navigation.varinLogin=(renderPath[0]==="login");varinPassword=(renderPath[0]==="forgot_password");// Store the values in the model.$scope.renderAction=renderAction;$scope.renderPath=renderPath;$scope.inLogin=inLogin;$scope.inPassword=inPassword;$scope.loaded=false;};// Listen for changes to the Route.// When the route changes, let's set the renderAction model value// so that it can render in the Strong element.$scope.$on("$routeChangeSuccess",function($currentRoute,$previousRoute){// Update the rendering.self.render();});}]);}
Ok I have been able to debug a little, and it looks like the listener is added ($on) AFTER the $locationChangeSuccess is triggered so the updateRoute is never called.
Any idea?
I feel so ashamed... :)
After spending an hour debugging and finding out that angular was not finding the ng-controller directive for IE I realized that I forgot to include the same controller in the IE specific html directive...
Developing an application and tried with the latest stable and unstable version.
The application loads fine on all browser minus IE 9 and IE8 (and maybe lower)
Trying to debug it it looks like the
$locationChangeSuccess
broadcast is never received by the object listening for it$rootScope.$on('$locationChangeSuccess', updateRoute);
and thus never calls the updateRoute method.
The function
afterLocationChange
is called though.I haven't been able to debug thanks to the sucky IE10 debugger (doesn't break on breakpoints I set in angularJS), so used console.log outputs.
I am bootstraping manually and I have a specific way of routing, not using ng-views but ng-include / ng-switch and adding to the routes an action property which will then be evaluated by the main controller and injected into the scope which the views are using for the ng-switch.
I don't know if it's related to the way I am routing things, as it really appears that the updateRoute is never called, but I here is the code anyways, in case I am wrong.
The route definition
The application controller
And in my partial
I am yet to see an app working in IE8.
If you have any links I will be keen to check it out.
Cheers.
The text was updated successfully, but these errors were encountered: