In my application.js controller
I have the following actions:
export default Ember.ObjectController.extend({
//------------------------------------------------------------
currentPathChanged: function () {
window.scrollTo(0, 0);
}.observes('currentPath'),
//------------------------------------------------------------
actions: {
//------------------------------------------------------------
pageBlock: function(desc_text){
if(typeof desc_text === 'undefined'){
desc_text='Processing';
}
$.blockUI.defaults.css = {};
$.blockUI({message: desc_text});
},
pageUnBlock: function(){
$.unblockUI({fadeOut:200});
}
//------------------------------------------------------------
}
//------------------------------------------------------------
});
Since I am rather new to debugging Emberjs applications, how do I call those actions from the console? Basically I want to confirm they work correctly and want to hook them up to child views.
I am using the ember cli project to build my ember application.
Current setup at the time of this post:
DEBUG: -------------------------------
DEBUG: Ember : 1.5.1
DEBUG: Ember Data : 1.0.0-beta.7+canary.b45e23ba
DEBUG: Handlebars : 1.3.0
DEBUG: jQuery : 2.1.1
DEBUG: -------------------------------