Skip to content

Instantly share code, notes, and snippets.

@in-async
Last active August 29, 2015 14:16
Show Gist options
  • Save in-async/2ee8884fe675fc757507 to your computer and use it in GitHub Desktop.
Save in-async/2ee8884fe675fc757507 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS Bin</title>
</head>
<body ng-app='myApp'>
<div id="content" ng-controller='fooCtrl'>
{{foo}}
</div>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
// 良くある AngularJS のコード
angular.module('myApp', [])
.controller('fooCtrl', function($scope) {
$scope.foo = 'foo by app';
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment