diff options
| author | Misko Hevery | 2010-07-29 12:50:14 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-07-29 12:54:13 -0700 | 
| commit | 1b768b84439e725010acc943ebfda462e49d3704 (patch) | |
| tree | 06476962f7116e8c10ddb35d17c5bd3038528aaa /scenario/location.html | |
| parent | 6bd8006edcbfe1dc1be8cb865fbcfe25157fe117 (diff) | |
| download | angular.js-1b768b84439e725010acc943ebfda462e49d3704.tar.bz2 | |
refactored $location service so that it correctly updates under all conditions
Diffstat (limited to 'scenario/location.html')
| -rw-r--r-- | scenario/location.html | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/scenario/location.html b/scenario/location.html new file mode 100644 index 00000000..a162636b --- /dev/null +++ b/scenario/location.html @@ -0,0 +1,15 @@ +  <!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"/> +    <script type="text/javascript" src="../src/angular-bootstrap.js#autobind"></script> +  </head> +  <body ng:init="$window.$scope = this"> +    <pre>$location={{$location}}</pre> +    <hr/> +    href: <input type="text" name="$location.href" size="120"/> <br/> +    hash: <input type="text" name="$location.hash" size="120"/> <br/> +    hashPath: <input type="text" name="$location.hashPath" size="120"/> <br/> +    hashSearch: <input type="text" name="$location.hashSearch" size="120" ng:format="json"/> <br/> +  </body> + </html>  | 
