Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active May 5, 2017 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/1f70125f7f6a1e79f75d2268524bd865 to your computer and use it in GitHub Desktop.
Save matthieu-D/1f70125f7f6a1e79f75d2268524bd865 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { Observable } from 'rxjs';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
displayedImages;
constructor() { }
ngOnInit() {
const baseImg = "http://lorempixel.com/400/200/";
const imgArray = Array(1000).fill(baseImg);
this.displayedImages = Observable.of(imgArray);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment