I have a component on the page which has following divs
<div style=" width:400; height:400; float:left">
<div style="background-color:red; width:50%; height:50%; float:left">
</div>
<div style="background-color:blue; width:50%; height:50%; float:right">
</div>
<div style="background-color:green; width:50%; height:50%; float:left">
</div>
<div style="background-color:orange; width:50%; height:50%; float:right">
</div>
</div>
I have another div on the same page as
<div class="eventBox eventBox__colorBar"></div>
When i click on any of the div above, i want to get the selected color and apply as a background-color for the 2nd div.
How to do with angular2?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…