angular-bootstrap-checkbox icon indicating copy to clipboard operation
angular-bootstrap-checkbox copied to clipboard

ng-class doesn't work

Open carmelolg opened this issue 6 years ago • 0 comments

ng-class="row.isRefused?'btn-success':'btn-danger'"

get this error:

Error: [$parse:syntax] Syntax Error: Token '{' is an unexpected token at column 42 of the expression [row.isRefused?'btn-success':'btn-danger' {'btn-xs': size==='default', 'btn-sm': size==='large', 'btn-lg': size==='largest', 'checked': checked===true}] starting at [{'btn-xs': size==='default', 'btn-sm': size==='large', 'btn-lg': size==='largest', 'checked': checked===true}].

Is maybe a problem inside the lib?

carmelolg avatar Sep 04 '19 13:09 carmelolg