ember.js - Ember Piping Feature -
does ember have similar feature angular2's piping (https://angular.io/docs/ts/latest/guide/pipes.html)? closest thing found transforms, strictly datastore (ds). want convert text "cat" "dog" everywhere, , don't want stick if statements everywhere. can create utility function this, if there specific feature use that.
looking this:
let = "cat"; let b = | animal; //animal should convert variable dog console.log(a); // cat console.log(b); // dog
i realize can , stick in utilities, want ember way if there one:
let animal = function(string) { if(a == "cat") { return "dog"; } }
is there built in feature of ember nicely me?
Comments
Post a Comment