angularjs - angular Error: [$parse:syntax] -
cant understand whats wrong code:
<div ng-show="advices.length > 3" ng-click="adviceslimit = (adviceslimit == 3)?advices.length:3" class="event more_history" style="padding: 0px;margin: 0px;background-color: white;"> <center class="ng-binding" style="font-size: 15px;padding-bottom: 4px;border-top: 2px;box-shadow: 0px 0px 0px 1px rgba(221, 221, 221, 0.92);"> <span ng-show="adviceslimit == 3">{{'more'|translate}} {{advices.length - 3}}</span> <span ng-show="adviceslimit > 3">{{'fill'|translate}}</span> <i ng-show="adviceslimit == 3" class="down icon" style="padding-left: 10px;"></i> <i ng-show="adviceslimit > 3" class="up icon" style="padding-left: 10px;"></i> </center> </div>
and have error:
error: [$parse:syntax] http://errors.angularjs.org/1.3.0-beta.2/$parse/syntax?p0=undefined&p1=expected%20%3a&p2=null&p3=3%3fadvices&p4=3%3fadvices @ error (native) @ http://127.0.0.1/js/built/mainlib.js?b25:39:456 @ ya.throwerror (http://127.0.0.1/js/built/mainlib.js?b25:193:322) @ ya.ternary (http://127.0.0.1/js/built/mainlib.js?b25:197:221) @ ya.assignment (http://127.0.0.1/js/built/mainlib.js?b25:196:366) @ ya.expression (http://127.0.0.1/js/built/mainlib.js?b25:196:319) @ ya.filterchain (http://127.0.0.1/js/built/mainlib.js?b25:195:449) @ ya.statements (http://127.0.0.1/js/built/mainlib.js?b25:195:273) @ ya.parse (http://127.0.0.1/js/built/mainlib.js?b25:192:147) @ $get (http://127.0.0.1/js/built/mainlib.js?b25:125:360) <div ng-show="advices.length >
all variables not undefined. when length console controller okey, 1 gives me mistake. , when delete ng-click no error detected, problem can in ng-click.
found problem. have turned on angular extension. when turned off becoms ok
Comments
Post a Comment