Angular binding for BlurHash.
npm install angular-blurhash
Import AngularBlurhashModule in your root module
import { AngularBlurhashModule } from 'angular-blurhash';
@NgModule({
imports: [AngularBlurhashModule]
})
Add AngularBlurhash component in the template
<angular-blurhash [hash]="hash"
[URL]="URL"
[width]="width"
[height]="height"
[alt]="alt">
</angular-blurhash>
Name | type | Description |
---|---|---|
hash | string | BlurHash string |
URL | string | Image URL |
width | number | CSS width |
height | number | CSS height |
alt | string | Optional alt attribute |