Chris Boerger
Chris Boerger

Reputation: 83

Is it possible to render a datalist using Angular Formly?

I am trying to use Angular Formly to render a datalist without success. With what I have, it renders the text input element but drops the datalist markup.

The JS Bin demonstrating the problem is at http://jsbin.com/vamalasiru/edit?html,js,output.

Any thoughts?

Upvotes: 0

Views: 276

Answers (1)

Chris Boerger
Chris Boerger

Reputation: 83

The answer is to wrap the template in a div being that the template manipulator will only use the first element in a template if there is not root element.

The JS Bin has been updated to show the working solution.

Upvotes: 1

Related Questions