bigBear713 / nb-common

Some common component, pipe, service based on angular.
https://bigbear713.github.io/nb-common/
MIT License
41 stars 6 forks source link

Provide a directive to add loading effect when loading a big image #5

Closed bigBear713 closed 2 years ago

bigBear713 commented 2 years ago

Version: V12.0.0

Feature: img[nbImg] directive

Description: Add loading effect when loading a big image. If failure to load the big image, can display a picture which is preset so that will not display broken image

Reason: I think it is common feature because loading a big image is often, or sometime the network is not so good. So displaying a loading effect is better user experience when loading thei image. Sometimes, the image has been removed but we don't know, so it can't load the image via old image url. It is also a better user experience to display a picture which we preset when failure to load the image

bigBear713 commented 2 years ago

It is published in v12.2.0!!

You can see it here