To test this demo, first install the packages using your favorite package manager:
yarn install or npm install
And then run the angular application:
ng s --aot
This is a demo repo that demostrates how to lazy load images in angular. The explanation for this repo can be location in accompanying article here.