Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meepobrother/meepo-loader
loader for angular,按需加载js
https://github.com/meepobrother/meepo-loader
angular lab meepo system
Last synced: about 2 months ago
JSON representation
loader for angular,按需加载js
- Host: GitHub
- URL: https://github.com/meepobrother/meepo-loader
- Owner: meepobrother
- License: mit
- Created: 2018-01-02T11:25:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T06:23:02.000Z (about 7 years ago)
- Last Synced: 2024-10-30T15:13:27.068Z (2 months ago)
- Topics: angular, lab, meepo, system
- Language: JavaScript
- Size: 1.69 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## loader for angular
```ts
loadSwiper() {
let swiper1 = './assets/libs/1.js';
let swiper2 = './assets/libs/2.js';
this.system.import([swiper1, swiper2]).subscribe(res => {
console.log('swiper1, swiper2 加载完毕', res);
});this.system.import([swiper2]).subscribe(res => {
console.log('swiper2 加载完毕', res);
});this.system.import([swiper1]).subscribe(res => {
console.log('swiper1 加载完毕', res);
});
}
```