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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -