mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 08:20:13 +01:00
fix(preloader): missed file, removed
This commit is contained in:
parent
e0a25d64c0
commit
e84c009dc3
1 changed files with 0 additions and 16 deletions
|
|
@ -1,16 +0,0 @@
|
||||||
import {Injectable} from '@angular/core';
|
|
||||||
|
|
||||||
@Injectable()
|
|
||||||
export class BaImageLoaderService {
|
|
||||||
|
|
||||||
public load(src):Promise<any> {
|
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let img = new Image();
|
|
||||||
img.src = src;
|
|
||||||
img.onload = function(){
|
|
||||||
resolve('Image with src ' + src + ' loaded successfully.');
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue