Skip to content

Commit

Permalink
πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
tjoskar committed Jun 5, 2020
1 parent 2308267 commit 7fe50bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions 463-invalid-provider-for-lazyLoadImageHooks/package.json
Expand Up @@ -19,6 +19,7 @@
"@angular/platform-browser": "~9.1.9",
"@angular/platform-browser-dynamic": "~9.1.9",
"@angular/router": "~9.1.9",
"ng-lazyload-image": "^8.0.1",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
Expand Down
Expand Up @@ -2,7 +2,9 @@ import { Component } from '@angular/core';

@Component({
selector: 'app-root',
template: '<h1>Hello</h1>',
template: ` <img [defaultImage]="defaultImage" [lazyLoad]="image" /> `,
})
export class AppComponent {
defaultImage = 'https://www.placecage.com/1000/1000';
image = 'https://images.unsplash.com/photo-1443890923422-7819ed4101c0?fm=jpg';
}
@@ -1,5 +1,6 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { LazyLoadImageModule } from 'ng-lazyload-image';

import { AppComponent } from './app.component';

Expand All @@ -8,7 +9,8 @@ import { AppComponent } from './app.component';
AppComponent
],
imports: [
BrowserModule
BrowserModule,
LazyLoadImageModule
],
providers: [],
bootstrap: [AppComponent]
Expand Down

0 comments on commit 7fe50bd

Please sign in to comment.