<!DOCTYPE html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="lib/angular.min.js"></script>
</head>
<body>
<input ng-model="name" type="text" placeholder="your name!">
<h1>hello {{ name }}</h1>
</body>
</html>
虽然这个例子不怎么有趣,但它展示了AngularJS最基本也最给人印象深刻的功能之一:数据绑定