This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
double quotes just outside a mustache confuses the angular parser #937
Comments
@vsavkin could you check this one ? ( |
It seems like the issue was introduced between 0.9.10 and 0.9.11. Angular 0.9.10: Angular 0.9.11: Angular 0.10.0: I'll look into it more this evening and try to fix it. |
Thanks! |
vsavkin
added a commit
to vsavkin/angular.dart
that referenced
this issue
Apr 23, 2014
…uotes Fix a bug in the interpolate function causing it not to handle expressions containing double quotes properly. Closes dart-archive#937
vsavkin
added a commit
to vsavkin/angular.dart
that referenced
this issue
Apr 23, 2014
…uotes Fix a bug in the interpolate function causing it not to handle expressions containing double quotes properly. Closes dart-archive#937
vsavkin
added a commit
to vsavkin/angular.dart
that referenced
this issue
Apr 23, 2014
…uotes Fix a bug in the interpolate function causing it not to handle expressions containing double quotes properly. Closes dart-archive#937
jbdeboer
pushed a commit
that referenced
this issue
Apr 30, 2014
…uotes Fix a bug in the interpolate function causing it not to handle expressions containing double quotes properly. Closes #937
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
to reproduce:
git clone https://github.com/angular/angular.dart.tutorial
cd angular.dart.tutorial/Chapter_03
pub install
python -m SimpleHTTPServer
replace web/index.html with this
navigate to localhost:8000/web/index.html with chromium
you will see a stack trace coming from angular:
Bad state: Can not watch expression containing ';'.
STACKTRACE:
set a breakpoint in scope.dart:1094, then ascend the call stack
to see what's happening at Scope.watch inside scope.dart:228.
inspect the 'expression' variable and you will see
yes, the double quotes here are literal. so i'm saying that
expression[0] == '"'
andexpression[1] == '\n'
, etc.the page will also display
"{{true}}"
, which is wrong.you shouldn't see the
{{}}
.now change index.html: replace
"{{true}}"
bya{{true}}b
.so all i've done here is replace the double quotes with the "simpler" delimiters a and b.
reload the page and you will see no error and it will correctly display
atrueb
.The text was updated successfully, but these errors were encountered: