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两个值
蝴蝶不菲
随时随地看视频慕课网APP
相关分类