Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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);
});
}
```