-
Notifications
You must be signed in to change notification settings - Fork 3k
1.0 ComponentProvider? (ng1) #2995
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
Comments
There is not, but it seems like there should be. I'd be open to a PR which implements this. I'd just need:
|
Hi guys, I'm looking at how this feature could be implemented. I'm new to the code base and would really appreciate any guidance. Am I correct in understanding that the component logic would have to be moved from the ng1ViewsBuilder ( Am I completely off the mark? |
@sarahpads happy to provide any insights I can. I think the block of code after this comment: It could be named The current |
Hi again, I have put together a pull request that addresses this thread: #3165. Please let me know if there are any improvements I can make or if I've stomped over some coding conventions. Thanks! |
What are the benefits of routing to the component directly vs using a template like <component-name input1='::$resolve.foo'></component-name> ? |
@mackelito it's just sugar for building the template (like your example). It can reduce boilerplate, and follows the same mental model as the other component based ui-routers (ng2 and react) In the future there may be other benefits for ng1, such as propagating callback bindings from the parent ui-view tag to the child component. |
Hello,
is there something like a 'ComponentProvider' to give a view dynamically a component like with ControllerProvider?
e.g.:
My current workaround is something like this:
But with my workaround, it's not possible to use the
Methods
from Ng1Controller.The text was updated successfully, but these errors were encountered: