AngularJSでフォームの値を操作する
sample.html
<!doctype html>
<html ng-app="MyApp">
<head>
<script src="angular.min.js"></script>
<script src="sample.js"></script>
</head>
<body ng-controller="MyController">
何か入力してください<input type="text" ng-model="Input">「{{Input}}」
</body>
</html>
sample.js
var myApp = angular.module('MyApp', []);
myApp.controller('MyController', ['$scope', function($scope) {
$scope.Input = "あいうえお";
}]);