angular2.0如何自定义管道?

咱们还能够写本身的自定义管道。 下面就是一个名叫ExponentialStrengthPipe的管道,它能够放大英雄的能力:html app/exponential-strength.pipe.ts COPY CODE import { Pipe, PipeTransform } from '@angular/core'; /* * Raise the value exponentially *
相关文章
相关标签/搜索