Dynamic pane directive for Angular.js