Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was 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

Description

@codermannn

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions