- Expert Angular
- Mathieu Nayrolles Rajesh Gunasundaram Sridhar Rao
- 77字
- 2021-07-15 17:05:36
Filters and pipes in templates
AngularJS filters are now called as pipes in Angular. The filters are used after the pipe character (|) in AngularJS and there is no syntactical change in Angular. However, Angular calls the filters as pipes.
AngularJS:
<h1>Book Details:</h1> <p>{{vm.bookName}}</p> <p>{{vm.releaseDate | date }}</p>
Angular:
<h1>Book Details:</h1> <p>{{bookName}}</p> <p>{{releaseDate | date }}</p>
Notice we have applied a date pipe or filter to releaseDate and there is no syntactical change between AngularJS and Angular.
推薦閱讀
- WildFly:New Features
- Python概率統計
- Maven Build Customization
- C#程序設計(慕課版)
- SEO智慧
- 小學生C++創意編程(視頻教學版)
- SQL Server與JSP動態網站開發
- Integrating Facebook iOS SDK with Your Application
- Mastering ROS for Robotics Programming
- Learning Unreal Engine Android Game Development
- CoffeeScript Application Development Cookbook
- Geospatial Development By Example with Python
- Julia數據科學應用
- Advanced Python Programming
- Python Web自動化測試設計與實現