Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created January 11, 2018 04:56
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 rahulsahay19/f3833fe4eddcb5386c3e94f2a459a617 to your computer and use it in GitHub Desktop.
Save rahulsahay19/f3833fe4eddcb5386c3e94f2a459a617 to your computer and use it in GitHub Desktop.
app.component.html
<div class="container">
<h2>Pipes Example</h2>
<hr>
<h3>Feed Status: {{feedStatus}}</h3>
<div class="row">
<div class="col-xs-12 col-sm-10 col-md-8 col-sm-offset-1 col-md-offset-2">
<ol class="list-group">
<li class="alert"
*ngFor="let empl of Employees"
[ngClass]="getEmployees(empl)">
<span class="badge">
{{ empl.name | shortName:true }}
</span>
<strong>{{ empl.desig | uppercase }}</strong> | {{ empl.location }} | {{ empl.joined | date:'fullDate' | uppercase }}
</li>
</ol>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment