formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.22k stars 405 forks source link

Nested Property Keys not working multi-checkbox #561

Closed Werick closed 8 years ago

Werick commented 8 years ago

Hi, Am using nested properties for my keys how ever the multiCheckbox seems not to be working. See this example http://jsbin.com/saripusono/edit?html,js,output. Thanks Erick

epnikolop commented 8 years ago

Not an issue please try that

    vm.model = {
      even: {
        with:{}
      }
    };

and

{
        key: 'arrays',
        type: 'multiCheckbox',
        model: vm.model.even.with,
        templateOptions: {
          label: 'Array property',
          options:[{value:'test',name:'test'},{value:'test1',name:'test1'}]
       }
}
benoror commented 8 years ago

I'm going to go ahead and close this issue.

epnikolop commented 8 years ago

This should be reopened as i typed incorrectly above that is not an issue i'm new in formly and I wasn't aware of the nested functionality that other type of field types correctly support, my comment above it's just a by-pass of the issue.

benoror commented 8 years ago

I'm sure that angular-formly can do this for you. The best way to get help is by following the instructions here: http://help.angular-formly.com

I'm going to go ahead and close this issue because the github issues for this project are reserved for bug reports and feature requests. See you on chat! Thanks!