Angular In Regular Html Attributes

Posted By Weston Ganger

When using the value attribute with an angular variable be sure to include the curly braces {{}}

Do this:

<option ng-repeat="category in categories" value="{{}}"> {{}} </option>

Dont Do This:

<option ng-repeat="category in categories" value=""> {{}} </option>

This happens because the value="" attribute is not an angular attribute therefore wont automatically reference angular.

Article Topic:Software Development - Angular

Date:August 13, 2014