diff options
Diffstat (limited to 'example/personalLog/personalLog.html')
| -rw-r--r-- | example/personalLog/personalLog.html | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/example/personalLog/personalLog.html b/example/personalLog/personalLog.html index bc7e2e25..77d2ddc2 100644 --- a/example/personalLog/personalLog.html +++ b/example/personalLog/personalLog.html @@ -1,28 +1,31 @@ <!doctype html> -<html xmlns:ng="http://angularjs.org" ng:app> +<html ng-app> <head> <title>Personal Log</title> - <script type="text/javascript" src="../../src/angular-bootstrap.js"></script> - <script type="text/javascript" src="personalLog.js"></script> + <script src="../../src/loader.js"></script> + <script> + setupModuleLoader(window); + </script> + <script src="personalLog.js"></script> + <script src="../../src/angular-bootstrap.js"></script> + <script src="../../src/ngCookies/cookies.js"></script> </head> - <!-- 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"> + <body ng-controller="LogCtrl"> - <form action="" ng:submit="addLog(newMsg)"> - <input type="text" ng:model="newMsg" /> - <input type="submit" value="add" /> - <input type="button" value="remove all" ng:click="rmLogs()" /> + <form action="" ng-submit="addLog(newMsg)"> + <input type="text" ng-model="newMsg"> + <input type="submit" value="add"> + <input type="button" value="remove all" ng-click="rmLogs()"> </form> <hr/> <h2>Logs:</h2> <ul> - <li ng:repeat="log in logs | orderBy:'-at'"> + <li ng-repeat="log in logs | orderBy:'-at'"> {{log.at | date:'yy-MM-dd HH:mm'}} {{log.msg}} - [<a href="" ng:click="rmLog(log)">x</a>] + [<a href="" ng-click="rmLog(log)">x</a>] </li> </ul> |
