You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.
Idea:
It should be possible to render html which is defined in the dom or parent document into specific slots in your child component (like multiple outlets in ember).
You can define templates with a slot id inside the html of your component. In your template of the component you can not mark the places where the outer template should be rendered.
<my-component><templateslot="content">
some content
</template></my-component>
<my-component><div>
some content
</div></my-component>
The context inside the template tag has to be discussed. Is it the context of my-component or the parent component.
Slots should be the default behaviour of component templates. Slots/Templates should also be used internally for rendering the components template into the dom.
<my-component></my-component>
@Component({selector: 'my-component',template: ` <div> some content </div> `})classMyComponent{}
Idea:
It should be possible to render html which is defined in the dom or parent document into specific slots in your child component (like multiple
outlets
in ember).You can define templates with a slot id inside the html of your component. In your template of the component you can not mark the places where the outer template should be rendered.
renderes into:
The context inside the template tag has to be discussed. Is it the context of my-component or the parent component.
Slots should be the default behaviour of component templates. Slots/Templates should also be used internally for rendering the components template into the dom.
The code above is the same as:
This will give us a powerful functionality for rendering html into different parts of your template
The text was updated successfully, but these errors were encountered: