Skip to content

Instantly share code, notes, and snippets.

@daniele-zurico
Created June 17, 2018 19:16
Show Gist options
  • Select an option

  • Save daniele-zurico/040be91518086f52f1f49d8e1660fb3c to your computer and use it in GitHub Desktop.

Select an option

Save daniele-zurico/040be91518086f52f1f49d8e1660fb3c to your computer and use it in GitHub Desktop.
@Component({
selector: 'swkb-hero-list',
templateUrl: './hero-list.component.html',
styleUrls: ['./hero-list.component.scss']
})
export class HeroListComponent implements OnInit {
heroes$: Observable<Hero[]>;
isFirst$: Observable<boolean>;
isLast$: Observable<boolean>;
isLoading$: Observable<boolean>;
constructor() { }
ngOnInit() {
}
prev() {
}
next() {
}
trackByUrl(index: number, hero: Hero): string {
return hero.url;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment