Module for Image placeholder Directive for angular apps when images are loaded dynamically over network calls
$ npm install --save ng-image-placeholder
in app.module.ts add the following in declarations
import { ImagesDirective } from 'ng-image-placeholder';
@NgModule({
declarations: [
ImagesDirective
]
<img ng-image-placeholder src="{{image-src}}" placeholder="{{placeholder-image}}">
- 1.0.0 -- basic module for imageplaceholder
- 1.1.0 -- added placeholder as input to directive
- need to make broken image dynamic
- need to seperate out no-image and broken image case
- Faisal Ali