Skip to content

Commit

Permalink
fix(): show spinner only if spinner property is true
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Oct 13, 2016
1 parent 86b1a61 commit ebc8b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/img-loader/img-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ImageLoaderConfig } from "../../providers/image-loader-config";

@Component({
selector: 'img-loader',
template: '<image-loader-spinner *ngIf="isLoading"></image-loader-spinner>'
template: '<image-loader-spinner *ngIf="spinner && isLoading"></image-loader-spinner>'
})
export class ImgLoader implements OnInit {

Expand Down

0 comments on commit ebc8b1d

Please sign in to comment.