Skip to content

Instantly share code, notes, and snippets.

@jeshan
Last active August 29, 2015 14:15
Show Gist options
  • Save jeshan/81f4df98be0943eec0fe to your computer and use it in GitHub Desktop.
Save jeshan/81f4df98be0943eec0fe to your computer and use it in GitHub Desktop.
angular-intro-01; Hello world
<!DOCTYPE html>
<html ng-app='angularApp'>
<head>
<meta name="description" content="angular-intro-01; Hello world">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<meta charset="utf-8">
</head>
<body ng-controller='HelloController'>
<p ng-bind='welcomeMessage'></p>
</body>
</html>
var module = angular.module('angularApp', [ ]);
module.controller('HelloController', function($scope) {
$scope.welcomeMessage = 'Hello, world!';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment