TemplateUrl according to object property

1

Hello,

I have a controller with an array ($ scope.fields) with several objects inside: each object is a different form input (eg input, select, checkboxes). I'm already using ng-repeat to iterate over them, however I need everyone to load a different templateUrl according to the object's own Type property.

What is the ideal method to do this using Angular? (v1.5.7)

Thank you in advance!

    
asked by anonymous 25.08.2016 / 22:50

1 answer

1

I think that's what you want - > here

    
26.08.2016 / 14:42