Creating components
Register and import custom elements so they can be used across Aurelia applications.
Globally registering an element
import Aurelia from 'aurelia';
import { MyApp } from './my-app';
import { SomeElement } from './path-to/some-element';
Aurelia
.register(SomeElement)
.app(MyApp)
.start();Importing the element within the template
<import from="./path-to/some-element"></import>Last updated
Was this helpful?