Last active
August 29, 2015 14:01
-
-
Save ChangJoo-Park/b4519018e1dc7aa8c798 to your computer and use it in GitHub Desktop.
Angular JS - Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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