<a ng-href="{{a==3 ? 'www.google.com/correct?{{a}}' :
'www.google.com/correct?{{a+1}}'}}"
It throws error.
Error: $parse:lexerr Lexer Error
Can anyone help please. I am new to angularjs and learning, not able to figure out how should I proceed.
<a ng-href="{{a==3 ? 'www.google.com/correct?{{a}}' :
'www.google.com/correct?{{a+1}}'}}"
It throws error.
Error: $parse:lexerr Lexer Error
Can anyone help please. I am new to angularjs and learning, not able to figure out how should I proceed.
Copyright Ā© 2021 Jogjafile Inc.
Please use:
Since it's an ng-tag, you shouldn't use brackets, and treat it like regular javascript.