Skip to content

Instantly share code, notes, and snippets.

@murilomothsin
Created May 14, 2016 04:49
Show Gist options
  • Save murilomothsin/689de7db454ea81634dfeb3c5550cf14 to your computer and use it in GitHub Desktop.
Save murilomothsin/689de7db454ea81634dfeb3c5550cf14 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Primeira aplicação Angular</title>
<script type="text/javascript" src="angular.js"></script>
</head>
<body ng-app>
<div>
<input type="text" ng-model="nome"></input>
<br>
Olá {{nome}}!
</div>
<button ng-click="nome = ''">Limpar!</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment