Building a wrapper directive (wrap some content / component) in angular2
问题 I'm pretty new building directives with Angular2. What I want is to create a popup directive that will wrap the content with some css classes. Content Content can be pure text and headers like: <div class="data"> <h2>Header</h2> Content to be placed here. </div> Then I want to give this a directive attribute like: popup <div class="data" popup> <h2>Header</h2> Content to be placed here. </div> What the directive should do, is to wrap the div inside, lets say: <div class="some class"> <div