-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ResolvePolicy NOWAIT - promise not injected as binding to component #3276
Comments
This one's a mystery to me. The value is on |
Which version of angular are you using? Does this relate at all to the need to use $onInit to access bindings in the controller now in angular 1.6 by chance? |
After some trial and error, I have discovered that the issue is caused by So the binding should be Having said that, I think it's worth adding a few lines to the documentation, warning against use of the |
@aj-dev awesome! I think UI-Router can handle this by pre-prefixing |
@christopherthielen indeed, always pre-prefixing |
Yes. this fix will be in the next release. (RC.2? final?) |
Just upgraded ui-router to 1.0.0. Any option reverts this to the old behavior? |
@CarterLi you should not rely on custom component names crated by a 3rd party lib in your CSS. IDs and classes are the way to go. |
@aj-dev But I can't add IDs, classes to the generated element either. I have to style it, which have no height, |
No. A component ( custom element ) should be self-contained. It should be able to style itself without expecting any additional code from its user. For example: A |
The fix totally breaks routed components styling in Angular 1.x. This is not the case for Angular 2 since we could write something like I believe the fix should provide some configuration option to turn prefixing component tag names on or off. |
I think what we need for NG1 is the ability to declare component attributes just like we can do with
|
@CarterLi I'm happy to add a feature flag for this. Please open a new issue |
This is related to the previous issue I had #3243 using
The fix seems to be working fine when data promise is injected into controller defined on the state, but that's not the case when using Angular component's controller https://plnkr.co/edit/2EbaCl?p=preview
dataPromise
resolve is correctly injected intoonEnter
hook but not as a binding topartial
component's controller.The text was updated successfully, but these errors were encountered: