Last active
August 29, 2015 14:10
-
-
Save LocalCommit/c933a12f597c8b6f959f to your computer and use it in GitHub Desktop.
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
angular.module('app').controller('HelloController',function($scope) { | |
$scope.message = "Hello World"; | |
}); |
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
$scope.messages = [{message: "Hello Department", send: "21.11.2014"}, | |
{message: "Hello Department", send: "24.11.2014"}]; |
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
<!-- CDN Google Hosted Libraries --> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script> |
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
<script> | |
function HelloController ($scope) { | |
// body... | |
// can be taken in a separate file HelloController.js | |
$scope.message = "Hello World"; | |
} | |
</script> |
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>First ng-app | At work</title> | |
</head> | |
<body> | |
<h1 ng-controller="HelloController">{{message}}</h1> | |
<!-- CDN Google Hosted Libraries --> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script> | |
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> --> | |
<!-- HelloController --> | |
<script> | |
function HelloController ($scope) { | |
// body... | |
$scope.message = "Hello World"; | |
} | |
</script> | |
</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
<script src="js/controllers/HelloController.js"></script> |
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
<html> | |
<head> | |
<title>First ng-app | Template</title> | |
</head> | |
<body> | |
<h1>Hello World</h1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment