Angular In Regular Html Attributes

Posted By Weston Ganger

<p>When using the value attribute with an angular variable be sure to include the curly braces {{}}</p>
<p>Do this:</p>

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

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

Article Topic:Software Development - Javascript

Date:August 13, 2014