angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

OnInit is not called when I type URL in the browser [HashLocationStrategy] #423

Open codermannn opened 8 years ago

codermannn commented 8 years ago

https://github.com/lohiarahul/Angular2-Silverlight-Starter

The above link can be used to reproduce the problem.

I have used the OnInit hook to initialize the silverlight control from inside a component. When I navigate to the silverlight view for the first time, all the lifecycle events are called. However, after that, the lifecycle events are only called when I route to the 'silverlight' view by click on the anchor tag. If I directly type the URL in the address bar, only the constructor is called and my silverlight plugin is not loaded

The problem seems to occur in IE and not in Chrome.