diff options
| author | Rob Spies | 2010-06-22 17:09:55 -0700 |
|---|---|---|
| committer | Rob Spies | 2010-06-22 17:09:55 -0700 |
| commit | 1500e91defa4020bfe9608749b25e585cd1d8e3d (patch) | |
| tree | 8c2872252b62567dc4eb00f7d7547661d5674c55 /scenario/application.html | |
| parent | eaa397c76b7d28343cde9f3a0338b9b0e79197c8 (diff) | |
| parent | b129a1094e6b42ed82c3ccecc2f40daaa0a6cb6a (diff) | |
| download | angular.js-1500e91defa4020bfe9608749b25e585cd1d8e3d.tar.bz2 | |
Merge http://github.com/angular/angular.js into angular
Conflicts:
.gitignore
Diffstat (limited to 'scenario/application.html')
| -rw-r--r-- | scenario/application.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/scenario/application.html b/scenario/application.html new file mode 100644 index 00000000..6b6ced69 --- /dev/null +++ b/scenario/application.html @@ -0,0 +1,34 @@ +<!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> + <script> + function AccountController(){ + } + + AccountController.prototype = { + hello: function(){ + alert(this.name); + } + + }; + + </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> + + + (( input name )) + + <pre>$location={{$location}}</pre> + </body> + </html> |
