diff options
| author | Misko Hevery | 2010-04-05 11:46:53 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-05 11:46:53 -0700 |
| commit | 7a4b48020688060debe9cb0f9c17615d7585cbe7 (patch) | |
| tree | 48a5b1d8cf92bb272028a106ab9ea3ec16f477a2 /scenario | |
| parent | 4bfa4e230d5ebdd582068effe7f4f1b60c43093a (diff) | |
| download | angular.js-7a4b48020688060debe9cb0f9c17615d7585cbe7.tar.bz2 | |
added ng:switch widget
Diffstat (limited to 'scenario')
| -rw-r--r-- | scenario/application-account.html | 4 | ||||
| -rw-r--r-- | scenario/application.html | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/scenario/application-account.html b/scenario/application-account.html new file mode 100644 index 00000000..8520d07c --- /dev/null +++ b/scenario/application-account.html @@ -0,0 +1,4 @@ +<div> +account page goes here! +</div> + diff --git a/scenario/application.html b/scenario/application.html new file mode 100644 index 00000000..be6390f6 --- /dev/null +++ b/scenario/application.html @@ -0,0 +1,19 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <link rel="stylesheet" type="text/css" href="style.css"></link> + <script type="text/javascript" src="../src/angular-bootstrap.js#autobind"></script> + </head> + <body ng-init="$window.$scope = this"> + [ <a href="#login">login</a> + | <a href="#account">account</a> + ] + + <ng:switch on="$location.hashPath"> + <div ng-switch-when="login">login screen</div> + <ng:include ng-switch-when="account" src="application-account.html"></ng:include> + </ng:switch> + + <pre>$location={{$location}}</pre> + </body> + </html> |
