File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ import { ImageLoaderConfig } from '../providers/image-loader-config';
4
4
5
5
@Component ( {
6
6
selector : 'img-loader' ,
7
- template : '<ion-spinner *ngIf="spinner && isLoading && !fallbackAsPlaceholder" [name]="spinnerName" [color]="spinnerColor"></ion-spinner>' ,
7
+ template : '<ion-spinner *ngIf="spinner && isLoading && !fallbackAsPlaceholder" [name]="spinnerName" [color]="spinnerColor"></ion-spinner>' +
8
+ '<ng-content></ng-content>' ,
8
9
styles : [ 'ion-spinner { float: none; margin-left: auto; margin-right: auto; display: block; }' ]
9
10
} )
10
11
export class ImgLoader implements OnInit {
@@ -178,7 +179,7 @@ export class ImgLoader implements OnInit {
178
179
this . isLoading = ! stopLoading ;
179
180
180
181
if ( this . _useImg ) {
181
-
182
+
182
183
// Using <img> tag
183
184
if ( ! this . element ) {
184
185
// create img element if we dont have one
You can’t perform that action at this time.
0 commit comments