Created
July 24, 2014 16:32
-
-
Save RedWolves/934866342f237c216e7e to your computer and use it in GitHub Desktop.
Angular Controller
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> | |
<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> |
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
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