【文件属性】:
文件名称:ngx-lazy-el:通过Angular Elements轻松加载延迟加载Angular组件
文件大小:214KB
文件格式:ZIP
更新时间:2021-05-14 17:13:12
performance angular lazy-loading TypeScript
ngx-lazy-el
容易延迟加载的组件 :flexed_biceps: 通过Angular Elements。
如何使用它
还请查看我有关使用该库的内容
在项目上安装Angular Elements
该库取决于Angular Elements。 您可以通过安装
$ ng add @angular/elements
安装ngx-lazy-el
从npm安装该库。
$ npm install @juristr/ngx-lazy-el
或者
$ yarn add @juristr/ngx-lazy-el
延迟加载组件
1)配置包含延迟加载组件的模块
首先,公开应通过customElementComponent属性加载的Angular Component。
...
@NgModule({
declarations: [HelloWorldComponent],
...
exports: [Hell
【文件预览】:
ngx-lazy-el-master
----.gitignore(503B)
----package.json(3KB)
----tslint.json(2KB)
----karma.conf.js(1012B)
----jest.config.js(250B)
----LICENSE(1KB)
----tsconfig.json(551B)
----.prettierignore(57B)
----tools()
--------schematics()
--------scripts()
--------tsconfig.tools.json(223B)
----libs()
--------ngx-lazy-el()
--------.gitkeep(0B)
----angular.json(5KB)
----README.md(3KB)
----apps()
--------demoapp-e2e()
--------.gitkeep(1B)
--------demoapp()
----.vscode()
--------extensions.json(115B)
----nx.json(331B)
----.editorconfig(245B)
----.prettierrc(25B)
----yarn.lock(445KB)