This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
ExpressionVisitor should throw with better messages #830
Closed
Description
<p ng-repeat="i in [1,2] trak by $id">{{ i }}</p>
would throw
Bad state: Can not watch expression containing ';'.
STACKTRACE:
#0 ExpressionVisitor._notSupported (package:angular/core/scope.dart:1094:5)
#1 ExpressionVisitor.visitChain (package:angular/core/scope.dart:1090:18)
#2 Chain.accept (package:angular/core/parser/syntax.dart:73:48)
#3 DynamicExpression.accept (package:angular/core/parser/dynamic_parser.dart:46:48)
#4 ExpressionVisitor.visit (package:angular/core/scope.dart:984:15)
#5 ExpressionVisitor.visitCollection (package:angular/core/scope.dart:993:65)
#6 _AstParser.call (package:angular/core/scope.dart:968:51)
#7 _AstParser.call (package:angular/core/scope.dart:969:7)
#8 _AstParser.call (package:angular/core/scope.dart:969:7)
#9 Scope.watch (package:angular/core/scope.dart:228:35)
I've noticed this message in several different situation. We should give a better explanation of the issue.
Metadata
Metadata
Assignees
Labels
No labels