-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·29 lines (29 loc) · 1.21 KB
/
index.php
File metadata and controls
executable file
·29 lines (29 loc) · 1.21 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-route.js"></script>
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>-->
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/validators.js"></script>
<title>Pruebas con Angular</title>
</head>
<body ng-app="index">
<div ng-controller="ctrl1">
<form name="myform" ng-submit="addNewName()" novalidate>
Nombre: <input name="nombre" type="text" ng-model="nombre" ng-Smin="2" ng-SMax="10" required></br>
Apellidos: <input name="apellido" type="text" ng-model="apellido" required ng-Smin="2" ng-SMax="20"></br>
Email: <input name="email" type="email" ng-model="email" check-email required></br>
Date: <input name="date" type="date" ng-model="date" check-date required></br>
<button>Add new Name</button>
<ul>
<li ng-repeat="x in names">
{{ x}}
</li>
</ul>
</form>
</div>
<button>Out</button>
</body>
</html>