JustDoItTomorrow
3/6/2018 - 7:55 AM

模板语法:管道

<!-- pipe with configuration argument => "February 25, 1970" -->
<div>Birthdate: {{currentHero?.birthdate | date:'longDate'}}</div>
<!-- Pipe chaining: convert title to uppercase, then to lowercase -->
<div>
  Title through a pipe chain:
  {{title | uppercase | lowercase}}
</div>
<div>Title through uppercase pipe: {{title | uppercase}}</div>

<div>{{currentHero | json}}</div>