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

ui-view bindings aren't propagating to angular child state component #159

Closed
mikelseverson opened this issue May 19, 2018 · 2 comments
Closed

Comments

@mikelseverson
Copy link

Using https://ui-router.github.io/guide/ng1/route-to-component#routed-parentchild-component-communication
I'm attempting to pass bindings down VIA a <ui-view>

<div
   ui-view
   data="$ctrl.data"
   callback="$ctrl.callback($event)">
</div>

Children states with angularJS components are working great.
Children states with angular components are not receiving the bindings.

It seems ui-view-ng-upgrade is not propagating the bindings down.
Is this supported at this time?
Or do you any ideas to achieve similar functionality?

Thanks!

@mikelseverson
Copy link
Author

My mistake, at this time this is not supported.
In the case of getting data to routed components, I'll look into using resolved instead for now.

Looks like this functionality is under discussion here: ui-router/angular#138

@christopherthielen
Copy link
Member

This is not supported for Angular components. It's not even supported by regular (non-hybrid) @uirouter/angular. There isn't an easy way to dynamically bind to arbitrary inputs of angular components. The angular compiler needs to know up front what is being bound.

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