How to change the content between the two DIVS in angular?

<a href="#">change content</a>
<div id="div_1"></div>
<div id="div_2">
 <!-- content -->
</div>


There is a div with id="div_1" and the contents inside. Need by clicking on the link to move the contents in the div with id="div_2" and then back again. How to implement it in angularjs? Please tell me. Thank you.
July 8th 19 at 15:25
3 answers
July 8th 19 at 15:27
Solution
The value of the first diva in a variable, and the value of the model diva in the second model first. then from the variable to the model of the second diva.
July 8th 19 at 15:29
And some code is in angularjs and already have or do you write?
July 8th 19 at 15:31
Well was interested in General principles. Maybe there's some clever way, which with sufficient knowledge of angular known. Thank you all. If you have any more thoughts - share pliz.

Find more questions by tags AngularHTML