angular2.0如何自定義管道?

咱們還能夠寫本身的自定義管道。 下面就是一個名叫ExponentialStrengthPipe的管道,它能夠放大英雄的能力:html app/exponential-strength.pipe.ts COPY CODE import { Pipe, PipeTransform } from '@angular/core'; /* * Raise the value exponentially *
相關文章
相關標籤/搜索