Skip to content

pantoken-root / renderers/angular/src / registerPantokenElements

ฟังก์ชัน: registerPantokenElements() ​

registerPantokenElements(): void

ทดลอง

ลงทะเบียน custom elements ของ pantoken (เรียกเพียงครั้งเดียวระหว่างการเริ่มต้นของแอป).

คืนค่า ​

void

ตัวอย่าง ​

ts
import { registerPantokenElements } from "@pantoken/angular";
import "@pantoken/css";

registerPantokenElements(); // during app bootstrap
// Add CUSTOM_ELEMENTS_SCHEMA to the component/module that uses <instui-icon>.