diff options
| author | Igor Minar | 2010-10-22 22:13:14 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-10-23 14:38:08 -0700 | 
| commit | 5b40e87ac687fc52ba86f39daf62975b169acf41 (patch) | |
| tree | 4629c51f5e86d46a7c1792ede0257b6cc774aac0 /example/personalLog/personalLog.html | |
| parent | 1391f19fb49275af59230afef51b472c58d7818c (diff) | |
| download | angular.js-5b40e87ac687fc52ba86f39daf62975b169acf41.tar.bz2 | |
personalLog demo - initial version with spec
Diffstat (limited to 'example/personalLog/personalLog.html')
| -rw-r--r-- | example/personalLog/personalLog.html | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/example/personalLog/personalLog.html b/example/personalLog/personalLog.html new file mode 100644 index 00000000..85a177e9 --- /dev/null +++ b/example/personalLog/personalLog.html @@ -0,0 +1,28 @@ +<!doctype html> +<html xmlns:ng="http://angularjs.org"> +  <head> +    <title>Personal Log</title> +    <script type="text/javascript" src="../../src/angular-bootstrap.js" ng:autobind></script> +    <script type="text/javascript" src="personalLog.js"></script> +  </head> + +   +  <body ng:controller="example.personalLog.LogCtrl"> + +    <form action="" ng:submit="addLog(newMsg)"> +      <input type="text" name="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"> +        {{log.at | date:'yy-MM-dd HH:mm'}} {{log.msg}} +        [<a href="" ng:click="rmLog($index)">x</a>] +      </li> +    </ul> + +  </body> +</html>
\ No newline at end of file | 
