Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller in child segment got instantiated twice #7

Closed
d6u opened this issue Aug 24, 2013 · 2 comments
Closed

Controller in child segment got instantiated twice #7

d6u opened this issue Aug 24, 2013 · 2 comments

Comments

@d6u
Copy link

d6u commented Aug 24, 2013

Example: http://plnkr.co/edit/yAbDMn
Illustration:

After you load the plunker, click to /home/project link, you will see ProjectCtrl have inputs in console twice.

@artch artch closed this as completed in 7d17472 Aug 25, 2013
@d6u
Copy link
Author

d6u commented Aug 25, 2013

@artch Thank you!

@dramentol
Copy link

Controller still gets invoked twice when 1 segment has no template or templateUrl configured and your top template tag for view like this:

<div app-view-segment="0">
    <div app-view-segment="1"></div>
</div>

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

No branches or pull requests

2 participants