Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

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

Open
codermannn opened this issue Jul 4, 2016 · 0 comments

Comments

@codermannn
Copy link

codermannn commented Jul 4, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant