angular-form-builder icon indicating copy to clipboard operation
angular-form-builder copied to clipboard

Issue in options

Open ebtsamsabeha opened this issue 6 years ago • 1 comments

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

ebtsamsabeha avatar Apr 17 '18 08:04 ebtsamsabeha

Hi ebtsamsabeha,

Please try to bind your option with following code.

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

Hirenp75 avatar Jun 27 '18 13:06 Hirenp75