I recently encountered a div setup in this way:
<div class="row loginCtrl.padding(50)"></div>
Here is my corresponding controller code snippet:
app.controller("loginController", function(){
this.padding = function(val){
alert('padding-top-'+val);
}
});
I'm aware that the padding function will only be triggered by an event such as a click.