Skip to content Skip to sidebar Skip to footer

Unrecognized Expression On Browserlink

I get some mistake about ' browserLink ' see this below

Solution 1:

There is a bug in Browser Link that is causing this problem. You should be able to work around it by adding an ID attribute to the <div> tag.

Browser Link creates jQuery expressions to try to uniquely identify tags in your page. In this case, it is trying to use the ng-show expression, because nothing else about the tag is unique enough. But the ng-show expression is obviously too complex for that purpose. It should have been ignored for that reason, but somehow it is beating the check that should've disqualified it.

Browser Link would rather use a unique ID or class, if one exists. By providing that, you can prevent it from considering the ng-show attribute.

Solution 2:

I had no DIV tag, so I simply disabled Browser Link in Visual studio and the error went away. There are reports of Browser Link causing problems when running AngularJS apps in Visual Studio.

To disable, simply uncheck the “Enable Browser Link” option.

enter image description here

I was pointed to this solution and there are more details in the answer here: ng-show > 10 throws syntax error (VS browser link)

Post a Comment for "Unrecognized Expression On Browserlink"