Skip to content
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
Closed
@basarat

Description

@basarat

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions