Open trotyl opened 5 years ago
Angular component always contains a host element, and Renderable always render content in child position.
Renderable
Provide an option to render content in sibling position:
import { Renderable } from 'ng-renderable' @Component({ selector: 'my-comp' }) class MyComponent extends Renderable { constructor(injector: Injector) { super(injector, { sibling: true }) } render() { return <p>42</p> } }
Resulting to:
<my-comp></my-comp> <p>42</p>
Current
Angular component always contains a host element, and
Renderable
always render content in child position.Expected
Provide an option to render content in sibling position:
Resulting to: