简体   繁体   中英

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?

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`    

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM