i'm trying make search fields generate automatically, based on config file. wat make 1 template tag , set attrs inside template (from $scope, of course). template looks this:
<div> <label = "{{ field.id }}">{{ field.label }}</label> <input type = "text" id = "{{ field.id }}" class = "{{ field.css }}" ng-model = "{{ field.model }}" /> </div>
if remove ng-model attr snippet work, if leave pasted none of attrs being "translated" , when inspect it.
<input type = "text" id = "{{ field.id }}" class = "{{ field.css }}" ng-model = "{{ field.model }}" />
but should this:
<input type = "text" id = "input1" class = "span3" ng-model = "user.name" />
does has idea how solve thing :) thank all!
Comments
Post a Comment