@fguillen wrote:
I have a Controller with a method that is giving back the CountryName when it receives the CountryCode:
// my Controller export default Ember.Controller.extend({ countryName: function(countryCode){ let countryName = <logic to get the CountryName>; return countryName; }, });
In my template I would like to be able to do this:
{{countryName "ES"}}
But looks like Ember is looking for a helper called
countryName
and it is not existing.Looks like is not possible to pass a param to a Controller method from a template and you have to create a intermediate helper.
Is there an easy way to use a parameterized Controller method from a template?
Posts: 3
Participants: 2