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: cover
img
that can be right clicked and savedimg
can havealt
textThe
img
element is not visible to the user. Instead the user sees thebackground-image
optimized with thecover
style.