Last active
August 12, 2019 15:05
-
-
Save jtrussell/13a772d812053e2e76f8 to your computer and use it in GitHub Desktop.
jsbin - AngularJS, basic template
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Angular JS</title> | |
</head> | |
<body ng-app="jsbin"> | |
<div ng-controller="DemoCtrl as demo"> | |
<h1>Hello {{demo.name}}</h1> | |
</div> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.js"></script> | |
<!-- | |
Not necessary for jsbin... | |
<script src="main.js"></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
var app = angular.module('jsbin', []); | |
app.controller('DemoCtrl', function() { | |
this.name = 'World'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment