Angular In Regular Html Attributes

Posted by Weston Ganger on August 13, 2014

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.

Posted in Angular and Tagged with angular html value 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts