Skip to content

Instantly share code, notes, and snippets.

@xaiwant
Last active September 26, 2018 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xaiwant/12e7f9e4973d03e696bb131c4eb9e1eb to your computer and use it in GitHub Desktop.
Save xaiwant/12e7f9e4973d03e696bb131c4eb9e1eb to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app=”myApp ">
<p>Myself {{ firstname }}</p>
</div>
</body>
</html>
/*New App Declaration*/
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.firstname = "Jaywant Topno";
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment