2010-10-23 05:13:14 +00:00
|
|
|
<!doctype html>
|
2012-01-07 02:10:47 +00:00
|
|
|
<html xmlns:ng="http://angularjs.org" ng:app>
|
2010-10-23 05:13:14 +00:00
|
|
|
<head>
|
|
|
|
|
<title>Personal Log</title>
|
2012-01-07 02:10:47 +00:00
|
|
|
<script type="text/javascript" src="../../src/angular-bootstrap.js"></script>
|
2010-10-23 05:13:14 +00:00
|
|
|
<script type="text/javascript" src="personalLog.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
|
2010-10-24 04:40:27 +00:00
|
|
|
|
|
|
|
|
<!-- TODO: we need to expose $root so that we can delete cookies in the scenario runner, there
|
|
|
|
|
must be a better way to do this -->
|
2011-01-05 00:39:05 +00:00
|
|
|
<body ng:controller="example.personalLog.LogCtrl">
|
2010-10-23 05:13:14 +00:00
|
|
|
|
|
|
|
|
<form action="" ng:submit="addLog(newMsg)">
|
2011-09-08 20:56:29 +00:00
|
|
|
<input type="text" ng:model="newMsg" />
|
2010-10-23 05:13:14 +00:00
|
|
|
<input type="submit" value="add" />
|
|
|
|
|
<input type="button" value="remove all" ng:click="rmLogs()" />
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
|
<h2>Logs:</h2>
|
|
|
|
|
<ul>
|
2011-11-09 01:40:52 +00:00
|
|
|
<li ng:repeat="log in logs | orderBy:'-at'">
|
2010-10-23 05:13:14 +00:00
|
|
|
{{log.at | date:'yy-MM-dd HH:mm'}} {{log.msg}}
|
2010-10-24 04:40:27 +00:00
|
|
|
[<a href="" ng:click="rmLog(log)">x</a>]
|
2010-10-23 05:13:14 +00:00
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</body>
|
2011-11-09 01:40:52 +00:00
|
|
|
</html>
|