Skip to content

Instantly share code, notes, and snippets.

@voratham
Created May 22, 2018 07:26
Show Gist options
  • Save voratham/3338f4129e0c2e984116bb0cd8b6b264 to your computer and use it in GitHub Desktop.
Save voratham/3338f4129e0c2e984116bb0cd8b6b264 to your computer and use it in GitHub Desktop.
angular-template.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.js"></script>
</head>
<body ng-app="myApp" ng-controller="myAppCtrl">
<h1>{{name}}</h1>
<script>
app.module('myApp' , [] )
.controller('myAppCtrl', function($scope) {
$scope.name = "Dream";
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment