[英]Syntax Angular2 Pipe <template>
I am trying to mix the syntax and the pipes but I couldn't find too many information. 我正在尝试混合语法和管道,但是找不到太多信息。
The Pipe I already added on the component by pipes: [SearchPipe], and the SearchPipe I named as "search", here is my try: 我已经通过以下管道在组件上添加了管道:[SearchPipe]和名为“ search”的SearchPipe,这是我的尝试:
<template ngFor #item [ngForOf]="Items | Search: Past" #isHeader="first" >
Any help will be helpful. 任何帮助都会有所帮助。 Thanks guys
多谢你们
如果您使用的是Angular2 RC,则必须使用:-
<template ngFor let-item [ngForOf]="Items | Search: Past" let-isHeader="first" >
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.