【文件属性】:
文件名称:ngx-elements:包装并将您的Angular Ivy Component注册为自定义元素
文件大小:65KB
文件格式:ZIP
更新时间:2021-05-17 20:13:09
angular webcomponents rollup ivy elements
ngx-elements
包装并将您的Angular Ivy Component注册为自定义元素
入门
安装依赖项 git clone https://github.com/aelbore/ngx-elements.git
cd ngx-elements
npm install
安装
npm install ngx-elements
例子
npm run ngcc所有@angular/*库编译为与ivy兼容
npm run build ngx-elements构建ngx-elements
npm run build:profile示例代码
npm run serve进入浏览器http://localhost:5000
原料药
renderCustomElement将您的组件包装并注册到自定义元素(Web组件)中
renderNgComponent包装您的组件以自动进行更改检测
特征
【文件预览】:
ngx-elements-master
----package.json(1KB)
----src()
--------ngx-elements.ts(51B)
--------options.ts(252B)
--------utils.ts(1011B)
--------schema.ts(1KB)
--------wrapper.ts(1KB)
--------change-detection.ts(449B)
--------render-ngcomponent.ts(794B)
--------element.ts(1KB)
----tsconfig.json(356B)
----aria.config.ts(598B)
----examples()
--------hello-world()
--------counter()
--------profile()
----.gitignore(114B)
----public()
--------default.png(207B)
--------index.html(281B)
----README.md(2KB)
----yarn.lock(113KB)