Skip to content

Instantly share code, notes, and snippets.

@ddelizia
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddelizia/11505507 to your computer and use it in GitHub Desktop.
Save ddelizia/11505507 to your computer and use it in GitHub Desktop.
'use strict';
angular.module('vcrudSign', ['vcrudSignService', 'vcrudSignDirective', 'angular-growl'])
.controller('registerFormCtrl', ['$scope', 'growl', function($scope, growl) {
$scope.submit = function() {
if (!$scope.registerForm.$valid){
growl.addErrorMessage('Error in form',{ttl: 5000});
}
$scope.$broadcast('validateFormEvent');
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment