forked from gil/ng-cpf-cnpj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (45 loc) · 1.65 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>ng-cpf-cnpj</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<style type="text/css">
body {
font-family: 'Helvetica Neue', Helvetica, Verdana;
font-size: 16px;
}
div {
margin: 30px 0;
}
</style>
</head>
<body ng-app="myApp">
<h1>ng-cpf-cnpj</h1>
<form name="myForm">
<div>
CPF: <input name="cpf" ng-model="cpf" ui-mask="999.999.999-99" ng-cpf /><br/>
<small>myForm.cpf.$valid: {{ myForm.cpf.$valid }}</small>
</div>
<div>
CNPJ: <input name="cnpj" ng-model="cnpj" ui-mask="99.999.999/9999-99" ng-cnpj /><br/>
<small>myForm.cnpj.$valid: {{ myForm.cnpj.$valid }}</small>
</div>
</form>
<!-- Vendor -->
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/cpf_cnpj/build/cpf.js"></script>
<script src="bower_components/cpf_cnpj/build/cnpj.js"></script>
<script src="bower_components/angular-ui-utils/modules/mask/mask.js"></script>
<!-- Lib -->
<script src="lib/ngCpfCnpj.js"></script>
<script>
angular.module('myApp', ['ngCpfCnpj', 'ui.mask']);
</script>
</body>
</html>