Last active
June 10, 2019 06:50
-
-
Save NetanelBasal/0f5d932406d0db5323ea4f4f9cfd90e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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