Skip to content

Instantly share code, notes, and snippets.

@VictorQueiroz
Created May 15, 2014 03:12
Show Gist options
  • Select an option

  • Save VictorQueiroz/317b6bfbc7552ae4386a to your computer and use it in GitHub Desktop.

Select an option

Save VictorQueiroz/317b6bfbc7552ae4386a to your computer and use it in GitHub Desktop.
Um exemplo sobre como funciona a diretiva ngModel do AngularJS.
<!DOCTYPE html>
<html ng-app="app">
<head>
<script src="https://code.angularjs.org/1.3.0-beta.5/angular.js"></script>
<script>
angular.module('app', []);
</script>
</head>
<body>
<h1>Olá {{name}}!</h1>
Digite o seu nome aqui: <input type="text" ng-model="name">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment