Skip to content

Instantly share code, notes, and snippets.

@alpersilistre
Created December 30, 2015 23:35
Show Gist options
  • Save alpersilistre/f95b82575631df633a11 to your computer and use it in GitHub Desktop.
Save alpersilistre/f95b82575631df633a11 to your computer and use it in GitHub Desktop.
Angular JS basic example
<!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