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 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts