Am using ember-cli with handlebars template for my ember js application.I have the requirement to pass value from hanldebars template to ember controller's computed property.Is there any way ember supports to pass parameters or any value from handlebars template to ember controller's computed property. Thank You
I want do something like:
App.Person = Ember.Object.extend({
hasPermission: function(value1, value2) {
// setter
if(value1 === value2){
return "You are permitted";
}else{
return "You are not permitted";
}
}.property('hasPermission')
});
And from handlebars template:
{{ hasPermission value1 value2 }}
Something like it