mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
fix(preloader): missed file, add again, hopefully final version
This commit is contained in:
parent
44faacd19a
commit
ffe020fd2a
2 changed files with 17 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
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.');
|
||||
};
|
||||
});
|
||||
}
|
||||
}
|
||||
1
src/app/theme/services/baImageLoader/index.ts
Normal file
1
src/app/theme/services/baImageLoader/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './baImageLoader.service';
|
||||
Loading…
Add table
Add a link
Reference in a new issue