fix(preloader): missed file, smth weird going on with this file...

This commit is contained in:
nixa 2016-05-24 16:59:05 +03:00
parent d2fadd02d2
commit e0a25d64c0

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