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

Recommended Posts



Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected