Created
December 30, 2015 23:35
-
-
Save alpersilistre/f95b82575631df633a11 to your computer and use it in GitHub Desktop.
Angular JS basic example
This file contains hidden or 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="app"> | |
<head> | |
</head> | |
<body> | |
<h1 ng-controller="HelloWorldCtrl">{{helloMessage}}</h1> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> | |
<script type="text/javascript"> | |
angular.module('app', []).controller('HelloWorldCtrl', | |
function($scope) { | |
$scope.helloMessage = "Hello World"; | |
} | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment