Created
March 8, 2018 23:07
-
-
Save parzibyte/39ac46d377679a12fd6585a229534538 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 lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Ejemplo de formulario</title> | |
<!-- Cargar la librería principal --> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> | |
<!-- Como nuestro script no será muy grande, podemos ponerlo en el HTML --> | |
<script> | |
angular | |
.module("formularios", []) | |
.controller("ControladorPrincipal", [function(){ | |
/* | |
Aquí la magia | |
*/ | |
}]); | |
</script> | |
</head> | |
<body ng-app="formularios"> | |
<div ng-controller="ControladorPrincipal"> | |
{{ 5 + 5}} | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment