portal() helper
This release introduces the portal helper. This is a helper that allows you to render HTML to somewhere else in the document.
For example, given this ViewModel:
const ViewModel = DefineMap.extend({
head: {
default: () => document.head
}
});You can now render to the document.head within the template:
For more information, check out the portal helper docs.