Skip to content

Instantly share code, notes, and snippets.

@musghost
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save musghost/789eaa17acf8b81db8a3 to your computer and use it in GitHub Desktop.

Select an option

Save musghost/789eaa17acf8b81db8a3 to your computer and use it in GitHub Desktop.
My first AngularJS application
<!doctype html>
<html >
<head>
<title>My fist AngularJS app</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
</head>
<body ng-app>
<div ng-controller="miPrimerControlador">
<p>{{ modelo.texto }}</p>
</div>
<script type="text/javascript">
function miPrimerControlador($scope){
$scope.modelo = {
texto: 'hola'
}
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment