I have a div like this:
<div class="row loginCtrl.padding(50)"></div>
My controller code goes like this:
app.controller("loginController", function(){
this.padding = function(val){
alert('padding-top-'+val);
}
});
i know that padding function will be only called on a event like click etc
ng-classfor this