Skip to content

Instantly share code, notes, and snippets.

@ChangJoo-Park
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChangJoo-Park/b4519018e1dc7aa8c798 to your computer and use it in GitHub Desktop.
Save ChangJoo-Park/b4519018e1dc7aa8c798 to your computer and use it in GitHub Desktop.
Angular JS - Examples
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<title>AngularJS</title>
</head>
<body>
<div>
<div ng-controller="MainCtrl">
<p ng-model="helloworld">{{ helloworld }}</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.7/angular.min.js"></script>
<script type="text/javascript">
var myApp = angular.module('myApp', []);
myApp.controller('MainCtrl', ['$scope', function ($scope) {
$scope.helloworld = 'Hello World.';
}]);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment