aboutsummaryrefslogtreecommitdiffstats
path: root/example/personalLog/personalLog.html
diff options
context:
space:
mode:
Diffstat (limited to 'example/personalLog/personalLog.html')
-rw-r--r--example/personalLog/personalLog.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/example/personalLog/personalLog.html b/example/personalLog/personalLog.html
index 64a6115d..6915b9a0 100644
--- a/example/personalLog/personalLog.html
+++ b/example/personalLog/personalLog.html
@@ -6,8 +6,10 @@
<script type="text/javascript" src="personalLog.js"></script>
</head>
-
- <body ng:controller="example.personalLog.LogCtrl">
+
+ <!-- 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 -->
+ <body ng:controller="example.personalLog.LogCtrl" ng:init="$window.$root = $root">
<form action="" ng:submit="addLog(newMsg)">
<input type="text" name="newMsg" />
@@ -20,7 +22,7 @@
<ul>
<li ng:repeat="log in logs.$orderBy('-at')">
{{log.at | date:'yy-MM-dd HH:mm'}} {{log.msg}}
- [<a href="" ng:click="rmLog($index)">x</a>]
+ [<a href="" ng:click="rmLog(log)">x</a>]
</li>
</ul>