Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Last active June 10, 2019 06:50
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 NetanelBasal/0f5d932406d0db5323ea4f4f9cfd90e5 to your computer and use it in GitHub Desktop.
Save NetanelBasal/0f5d932406d0db5323ea4f4f9cfd90e5 to your computer and use it in GitHub Desktop.
@Component({
selector: 'app-tweets',
template: `
<infinite-scroll (scrolled)="onScroll()">
<app-tweet *ngFor="let tweet of tweets$ | async" [tweet]="tweet"></app-tweet>
<div *ngIf="isLoading$ | async">
Fetching tweets...
</div>
</infinite-scroll>
`
})
export class TweetsComponent implements OnInit {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment