1.向管道传入两个值,在html中改怎么写
ts:
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'attackType' })
export class AttackType implements PipeTransform {
transform(value,valuetwo): any { console.log() }
}
html:
{{(data.aa,data.bb) | attackType}}
html怎么写不正确改怎么写,管道可以得到value和valuetwo两个值
相关分类