I'm new to Angular and am trying to understand how to dynamically create new elements. I have an element directive called "pane" that replaces the pane tag with a template.
<pane ng-controller="AreaCtrl"></pane>
Template for pane (condensed):
<div>
<section></section>
<div class="subs"></div>
</div>
When I click on an item inside the section tag, I want to append another "pane" inside the div with class="subs" if the "pane" for the item clicked doesn't already exist. I can't get the appended pane tag to invoke the directive and be replaced by the template. Any point in the right direction would be great for an Angular newbie.
Here is a simple jsfiddle: http://jsfiddle.net/n9vXz/1/