Skip to content

Instantly share code, notes, and snippets.

@musghost
Created July 14, 2014 23:09
Show Gist options
  • Select an option

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

Select an option

Save musghost/d2adf8851aaa5e09a5c9 to your computer and use it in GitHub Desktop.
My first AngularJS application II
<!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>
<input ng-model='modelo.texto'>
</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