fix(preloader): missed file, add again, hopefully final version

This commit is contained in:
nixa 2016-05-24 17:07:42 +03:00
parent 44faacd19a
commit ffe020fd2a
2 changed files with 17 additions and 0 deletions

View file

@ -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.');
};
});
}
}

View file

@ -0,0 +1 @@
export * from './baImageLoader.service';