Angular 2: Set and remove custom pipes?
问题 I've created three custom pipe to order data from server (ASC, DESC and Default), they work perfectly, I want that this three pipes active or not depending of the interaction of the user. The question is, It's posible change the custom pipe with a variable for example?. This is my code... <label *ngFor="let user of users | {{pipeOrderType}}:'name'">{{user.id}}{{user.name}}, </label> 回答1: There is no way to assign different pipes dynamically. You can create a pipe that behaves differently