Last active
October 16, 2015 21:09
-
-
Save jdx/8ffbd6e07a77ad3a0fcb to your computer and use it in GitHub Desktop.
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 lang="en" ng-app="app"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>simple-mean</title> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.7/angular.js"></script> | |
<script src="/scripts/app.js"></script> | |
</head> | |
<body> | |
<div ng-controller="TodoCtrl"> | |
<h1>Todos</h1> | |
<ul> | |
<li ng-repeat="todo in todos"> | |
{{todo.title}} | |
</li> | |
</ul> | |
<form ng-submit='addTodo()'> | |
<input ng-model='newTodo.title'> | |
<input type='submit' value='Add'> | |
</form> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment