Certainly. This plunker demonstrates a customized select that's intended to work with objects (group capability isn't fleshed out), restore selection, and handle default values:
https://plnkr.co/edit/alOmj0wlRNffIzLGGvnr?p=preview
If all you're after is something similar to the issue you linked from angular-formly, the built in type will handle that as well. This is the above example using the select field type that is packaged with ng-formly:
Thanks for these examples. Is there a way to use arrow function instead of onInit: function() {...} and still get the access to to.options param?
Not that I'm aware of.
This is the answer for my last question I believe :)
https://github.com/formly-js/ng-formly/blob/master/demo/src/app.component.ts#L171
Most helpful comment
Certainly. This plunker demonstrates a customized select that's intended to work with objects (group capability isn't fleshed out), restore selection, and handle default values:
https://plnkr.co/edit/alOmj0wlRNffIzLGGvnr?p=preview
If all you're after is something similar to the issue you linked from angular-formly, the built in type will handle that as well. This is the above example using the select field type that is packaged with ng-formly:
https://plnkr.co/edit/P7MAFJ73KQjZEyPsgU8U?p=preview