Skip to content

Instantly share code, notes, and snippets.

@LukaszWiktor
Forked from jtrussell/index.html
Last active August 29, 2015 14:25
Show Gist options
  • Save LukaszWiktor/9dfbe736c31bd6b494ca to your computer and use it in GitHub Desktop.
Save LukaszWiktor/9dfbe736c31bd6b494ca to your computer and use it in GitHub Desktop.
jsbin - AngularJS, basic template
<!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.3.8/angular.js"></script>
</body>
</html>
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