This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Ternary operator $parse error #8484
Closed
Description
Simple demo:
<div ng-app="myApp">
<button ng-click="foo ? bar=true : bas=true">click me</button>
</div>
angular.module('myApp',[]);
Error : [$parse:syntax] Syntax Error: Token 'undefined' expected : at column null of the expression [foo ? bar=true : bas=true] starting at [foo ? bar=true : bas=true]
Fiddle : http://jsfiddle.net/basarat/pLMS6/
Angular Version : 1.2.21
I believe its feature not implemented.