angular.js error? body = 1: 12809 Error: [$ parse: syntax] Syntax Error: Token ':

0

Greetings:

I am trying to send the following class: ng-class="letter: letter.show" but I get the following angular error: Error: [$ parse: syntax] Syntax Error: Token ': is an unexpected token at column 6 of the expression [letter: letter.show].

What is this error? ??

Thank you very much

    
asked by user31669 02.03.2017 в 20:59
source

1 answer

0

You have to remove the colon

  

:

ng-class = "carta.carta.mostrar"

or ng-class = "carta.mostrar"

The error in English is simply telling you that there is a syntax error when finding the token ":" in a place where I did not expect.

  

Syntax Error: Token ': is an unexpected token at column 6 of the expression [letter: letter.show].

I do not know what your case will be. In any case, the question is a bit badly formulated. Try to put code and so on so we can see what you are trying to do.

    
answered by 13.03.2017 в 14:13