Upgraded to new IgniteHtml register element.
This commit is contained in:
3
chip.js
3
chip.js
@@ -1,3 +1,4 @@
|
||||
import { IgniteHtml } from '../ignite-html/ignite-html.js';
|
||||
import { IgniteElement } from "../ignite-html/ignite-element.js";
|
||||
import { IgniteTemplate, slot, button, span } from "../ignite-html/ignite-template.js";
|
||||
|
||||
@@ -60,7 +61,7 @@ class ChipTemplate extends IgniteTemplate {
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define("mt-chip", Chip);
|
||||
IgniteHtml.register("mt-chip", Chip);
|
||||
|
||||
export {
|
||||
ChipTemplate as Chip
|
||||
|
||||
Reference in New Issue
Block a user