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

Spaces around '.' in expressions handled inconsistently #4613

Closed
fdavie-google opened this issue Oct 23, 2013 · 0 comments · Fixed by #8559
Closed

Spaces around '.' in expressions handled inconsistently #4613

fdavie-google opened this issue Oct 23, 2013 · 0 comments · Fixed by #8559

Comments

@fdavie-google
Copy link

Angular expressions don't handle whitespace consistently:

$eval('foo.bar'); // works
$eval('foo. bar'); // throws
$eval('foo. bar'); // works
$eval('foo . bar'); // works

All these work in JS.

Fiddle: http://jsfiddle.net/fdavie/MXK87/

pkozlowski-opensource added a commit to pkozlowski-opensource/angular.js that referenced this issue Aug 9, 2014
pkozlowski-opensource added a commit to pkozlowski-opensource/angular.js that referenced this issue Aug 10, 2014
pkozlowski-opensource added a commit to pkozlowski-opensource/angular.js that referenced this issue Aug 10, 2014
pkozlowski-opensource added a commit to pkozlowski-opensource/angular.js that referenced this issue Aug 10, 2014
pkozlowski-opensource added a commit to pkozlowski-opensource/angular.js that referenced this issue Aug 10, 2014
@btford btford removed the gh: issue label Aug 20, 2014
pkozlowski-opensource added a commit to pkozlowski-opensource/angular.js that referenced this issue Aug 23, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.