I am trying to create a large system using Angular. Thus, you can have several containers separated by a strip, which allows the user to resize them.
At the moment, I have a solution that requires the developer to write this HTML code:
<split-pane>
<container>Some content</container>
<separator></separator>
<container>Another content</container>
<separator></separtor>
<container>Content ?</container>
<split-pane>
split panel , container and separator are all angular2 custom components. a dashboard template is just
<ng-content></ng-content>
and I access the container and separtor inside the split panel using @ContentChildren(ContainerComponent)and@ContentChildren(SeparatorComponent)
, .
, HTML-:
<split-pane>
<container>Some content</container>
<container>Another content</container>
<container>Content ?</container>
<split-pane>
.
, Angular. Transclusion, , , .
?