Skip to content

Instantly share code, notes, and snippets.

@amitavroy
Last active December 18, 2015 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitavroy/5857966 to your computer and use it in GitHub Desktop.
Save amitavroy/5857966 to your computer and use it in GitHub Desktop.
This is my default html file as a starting point
<!doctype html>
<html lang="en" ng-app="anim">
<head>
<meta charset="UTF-8">
<title>Test page</title>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.5/angular.min.js"></script>
<script>
var anim = angular.module('anim', []);
anim.controller('MainCtrl', ['$scope', function ($scope) {
$scope.name = "Amitav";
}]);
</script>
</head>
<body>
<div id="wrapper" class="container" ng-controller="MainCtrl">
<p>Welcome {{name}}</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment