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
ng-if in container component and checking property references #4934
Comments
Why not just use an elvis operator? #791 |
If there is a lot of bindings you have to use |
On the one hand the result of the discussion I have mentioned above forced it to mark all the optional parts in the expressions: this makes things more obvious, but more laborious as well. On the other hand this is a trivial situation when the property isn't predefined since a data usually comes asynchronously and we have to use the elvis operator in each case regardless of how many bindings there are. So what's the difference with |
If |
Gotcha. Surely you are right. Here is a plunk that reproduces your issue - http://plnkr.co/edit/4xZOY0ujPE3tgl35aFwt?p=preview. The issue occurs because it renders the entire view before wrapping it in |
@baio <modal *ng-if="model">
<modal-header>
{{model.title}}
</modal-header>
<modal-content>
{{model.content}}
</modal-content>
</modal> |
Please re-open if still an issue on the latest RC |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When I use container component with
ng-if
which hide children elements (inserted viang-content
) it should not try to access properties bindings tillng-if
is trueThe text was updated successfully, but these errors were encountered: