Skip to content

Instantly share code, notes, and snippets.

@RedWolves
Created July 24, 2014 16:32
Show Gist options
  • Save RedWolves/934866342f237c216e7e to your computer and use it in GitHub Desktop.
Save RedWolves/934866342f237c216e7e to your computer and use it in GitHub Desktop.
Angular Controller
<!doctype html>
<html ng-app>
<head>
<title>Angular Example</title>
<script src="angular.js"></script>
<script src="script.js"></script>
</head>
<body ng-controller="MainController">
<h1>{{message}}</h1>
</body>
</html>
var MainController = function($scope) {
$scope.message = "Hello, Angular!";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment