Last active
July 3, 2018 06:51
-
-
Save dhavaln/d37e94944cd37229287030178674a93a to your computer and use it in GitHub Desktop.
App HTML Component with ToDo List
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
<div class="container"> | |
<div class="row"> | |
<div class="col-12 jumbotron"> | |
<h1 class="display-4">Your ToDos</h1> | |
</div> | |
<div class="col-12" *ngIf="loading"> | |
Loading ToDos ... | |
</div> | |
<div class="col-12"> | |
<ul class="list-group list-group-flush"> | |
<li class="list-group-item" *ngFor="let todo of todos"> | |
{{todo.content}} | |
<span class="badge badge-primary pull-right" *ngIf="!todo.status">Pending</span> | |
<span class="badge badge-success pull-right" *ngIf="todo.status">Completed</span> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment