Skip to content

Instantly share code, notes, and snippets.

Avatar

mike qin 1mike12

View GitHub Profile
View Validationexample.js
var app = angular.module('validationExample', []);
app.controller('signupController', ['$scope', function($scope) {
$scope.submitted = false;
$scope.signupForm = function() {
if ($scope.signup_form.$valid) {
} else {
$scope.signup_form.submitted = true;
}