R
R
Roman Ogarkov2016-11-17 13:16:55
Angular
Roman Ogarkov, 2016-11-17 13:16:55

Alternative to $compile for angular 2?

How to implement the ability to add components to the DOM tree on click?
For example I have 3 components, (input, textarea, select).
There are three methods (createInput, createTextarea, createSelect)
How to insert components (input, textarea, select) (append) dynamically in div#form when calling methods (createInput, createTextarea, createSelect)?
Give a simple example.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question