ng-vdom icon indicating copy to clipboard operation
ng-vdom copied to clipboard

Feature: option to render in sibling position

Open trotyl opened this issue 6 years ago • 0 comments

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:

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>

trotyl avatar Dec 26 '18 11:12 trotyl