docs(example): make example more interesting

test-unit-sauce
Brian Ford 10 years ago
parent 918ecd5c7d
commit d1f0888929

@ -1,21 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<title>yo</title>
</head>
<body ng-app="myApp">
<div ng-controller="myKontroller">
<h1>{{name}}</h1>
<h1>name: {{name}}</h1>
<input ng-model="name">
<h1>complex.a.b.c: {{complex.a.b.c}}</h1>
<input ng-model="complex.a.b.c">
<p>scope: {{$id}}</p>
<ul>
<li ng-repeat="num in items">{{num}}</li>
</ul>
</div>
<script src="../bower_components/angular/angular.js"></script>
<script>
angular.module('myApp', []).
controller('myKontroller', function ($scope) {
$scope.name = 'hey';
$scope.items = [1, 2, 3];
$scope.complex = { a: { b: { c: 'yo' }}};
var thing = 'document';
window[thing].getElementsByTagName('div')
});
</script>
</body>