Skip to content

Instantly share code, notes, and snippets.

@HAKASHUN
Created October 16, 2013 08:36
Show Gist options
  • Save HAKASHUN/7004548 to your computer and use it in GitHub Desktop.
Save HAKASHUN/7004548 to your computer and use it in GitHub Desktop.
AngularJSでHello World!
function HelloController($scope) {
$scope.greeting = { text: 'Hello World!' };
}
<html ng-app>
<head>
<meta charset="UTF-8">
<title>HelloWorld</title>
<script src="../bower_components/angular/angular.js"></script>
<script src="js/controllers.js"></script>
</head>
<body>
<div ng-controller="HelloController">
<p>{{greeting.text}}</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment