Creates the ImageCoverComponent
used to update the DOM Angular 2 - Renderer
a reference to the host element
Optional string to use for the alt attribute of the img element.
a reference to the host element
Image will fade into view when true.
True after there is an error loading the img element.
True after img element has loaded.
used to update the DOM Angular 2 - Renderer
Image url to use for the img element and host element's background-image style.
First call to updateImage.
Updates the image (via updateImage) if the src Input changes.
Let image fade in if it takes more than 300 milliseconds o load.
Sets the host element's background-image style to the src Input
this helped!: http://stackoverflow.com/a/22374423/5357459
Generated using TypeDoc
Creates an image that covers the element.
HomeModule
Features:
background-size: coverimgthat can be right clicked and savedimgcan havealttextThe
imgelement is not visible to the user. Instead the user sees thebackground-imageoptimized with thecoverstyle.