Skip to content

Instantly share code, notes, and snippets.

@akkijp
Created November 3, 2015 11:59
Show Gist options
  • Save akkijp/08ea623403df7134e112 to your computer and use it in GitHub Desktop.
Save akkijp/08ea623403df7134e112 to your computer and use it in GitHub Desktop.
AngularJS の基本
<!DOCTYPE html>
<html lang="ja" ng-app="myApp">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script>
angular.module("myApp", [])
.controller("MyController", function($scope){
$scope.mes = "こんにちわ、AngularJS!"
})
</script>
</head>
<body ng-controller="MyController">
{{1+1}}
<div>{{mes}}</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment