kelp404 / angular-form-builder

Drag and drop to build bootstrap forms in AngularJS.
http://kelp404.github.io/angular-form-builder/
MIT License
600 stars 340 forks source link

Issue in options #120

Open ebtsamsabeha opened 6 years ago

ebtsamsabeha commented 6 years ago

Hi,

First of all Thank you for this plugin . Its very nice and I am now using this form builder in an application. How to make option as id and value not text because need to update option by id not delete it every time such as // options:{'1':'value one','2':'value Two '} thanks

Hirenp75 commented 6 years ago

Hi ebtsamsabeha,

Please try to bind your option with following code.

data-ng-options="opt.Id as opt.value for opt in options"