Created
April 7, 2016 13:50
-
-
Save renanpalmeira/ab36666a098035b443ac493e8378d862 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="app"> | |
<head> | |
<title></title> | |
</head> | |
<body ng-controller="vai" ng-show="name"> | |
Its worked | |
</body> | |
<script type="text/javascript" src="/static/lib/angular.min.js"></script> | |
<script type="text/javascript"> | |
var app = angular.module('app', []); | |
app.factory('Regex', function(){ | |
return { | |
email: '/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/' | |
} | |
}); | |
app.controller('vai', function($scope, Person){ | |
$scope.Person = Person; | |
}); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment