Debug ng-click and ng-submit