Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

[Minor] Expressions with trailing . (dot) evaluate differently in standard / ng-csp mode #4912

Closed
kosprov opened this issue Nov 12, 2013 · 0 comments · Fixed by #8559
Closed

Comments

@kosprov
Copy link

kosprov commented Nov 12, 2013

I run into an ng-grid bug that makes the component behave differently in standard / ng-csp mode.

The problem lies in the fact that an expression with a trailing . evaluates to nothing when ng-csp is off and to the last property when ng-csp is on ({{foo.bar.}} is effectively the same as {{foo.bar}}).

Of course, trailing dots is something that can easily be considered illegal (throw an Error in both cases maybe).

Check out these plunkers: ng-csp off / ng-csp on.

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

Successfully merging a pull request may close this issue.

3 participants