Open eldyvoon opened 8 years ago
I had the same problem The problem is not ng-submit, but the fact that all controllers use this keyword inside instead of $scope and in the definition of the router all controllers don't use the controllerAs syntax that would allow the use of keyword this instead of $scope.
For resolve: In the app/app.js uses controllerAs syntax for all controllers, like this:
.when('/login', { templateUrl: 'partials/login.html', controller: 'LoginCtrl', controlleAs: 'login', resolve: { skipIfAuthenticated: skipIfAuthenticated } })
and in the all views concatenate to all function/variable/ecc the keyword that you used in the controllerAs, like this: `
I use angularjs and I think something is wrong with the controller, https://github.com/eldyvoon/megaboiletplate-angular-node/blob/master/app/controllers/login.js
line 16 will not be triggered when I try to trigger the ng-submit button.