New to Angular JS, trying to access the click event using ng-click.
HTML:
<button ng-click="selectNav($event)">Click</button>
JS:
angular.module('app').controller('ctrl', function(){
$scope.selectNav = function($event){
console.log($event);
}
});
On click of the button, its not giving the value of $event. Can any one let me know where am I going wrong.