javascriptjqueryangularjsangularjs-directivejquery-layout

Angular move directive from div to div


I have problem in my project I have something like this:

<div class="ui-layout-center">
    <left></left>
    <right></right>
    <div class="container-to-max"></div>
  </div>

http://plnkr.co/edit/deBMT5DAaoU47t4RxDhK?p=preview

in right pane I have few nesting directive and last directive have option to maximalize I need maximalize this directive in central pane, probably I would like fill the empty div parent div hide. I need something like this because I have in directive I have data what I need display and jquery plugin and so on. but I no have idea how do it could someone help me?


Solution

  • As i understood, you can get access to any element inside your directive via elm params. Here it is.

    `http://plnkr.co/edit/IhwysGj8gq2If01CoxP7?p=preview`