I have a web page with two columns. In the left column I show buttons. When pressed on a button then a HTML partial should be loaded in the right column. That HTML partial can be seen as a "widget".
The problem is that I'm not sure how to load the HTML partial in the right column dynamically with AngularJS.
So I basically have these layouts:
My main page:
<div class="left-col">
<button>Widget 1</button>
<button>Widget 2</button>
</div>
<div class="right-col">
<div class="selected-widgets">
<!-- dynamic partial HTML will be loaded here -->
</div>
</div>
My partials:
Widget1_Partial.html
<div>
<h2>Widget 1</h2>
<input name="width" value="">
<input name="height" value="">
</div>
Widget2_Partial.html
<div>
<h2>Widget 2</h2>
<input name="size" value="">
</div>
So I'd like to load the partials in the selected-widgets
div. How can I do this with AngularJS?