aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorMisko Hevery2011-09-06 12:04:47 -0700
committerIgor Minar2011-10-11 10:53:07 -0700
commitdf6d2ba3266de405ad6c2f270f24569355706e76 (patch)
treec5bab26312f82088b69e888079348bb43743a6d8 /example
parentccda436f94945f617461e5925c451737156bd337 (diff)
downloadangular.js-df6d2ba3266de405ad6c2f270f24569355706e76.tar.bz2
style(examples): clean up dead examples
Diffstat (limited to 'example')
-rw-r--r--example/calculator-bootstrap.html21
-rw-r--r--example/calculator-minified_init.html21
-rw-r--r--example/calculator.html21
-rw-r--r--example/memoryLeak.html55
4 files changed, 0 insertions, 118 deletions
diff --git a/example/calculator-bootstrap.html b/example/calculator-bootstrap.html
deleted file mode 100644
index 913d5b08..00000000
--- a/example/calculator-bootstrap.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!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>
- <script type="text/javascript" src="../lib/jquery/jquery.js"></script>
- <script type="text/javascript" src="../src/angular-bootstrap.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- scope = angular.compile(document);
- scope.$init();
- scope.a = 3;
- scope.$eval();
- });
- </script>
- </head>
- <body>
- Quantity: <input type="text" name="a" value="2">
- *
- Cost: <input type="text" name="b" value="3.4">
- = {{a * b | currency}}
- </body>
-</html>
diff --git a/example/calculator-minified_init.html b/example/calculator-minified_init.html
deleted file mode 100644
index 922aabb8..00000000
--- a/example/calculator-minified_init.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!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>
- <script type="text/javascript" src="../lib/jquery/jquery.js"></script>
- <script type="text/javascript" src="../angular-minified.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- scope = angular.compile(document);
- scope.$init();
- scope.a = 3;
- scope.$eval();
- });
- </script>
- </head>
- <body>
- Quantity: <input type="text" name="a" value="2">
- *
- Cost: <input type="text" name="b" value="3.4">
- = {{a * b | currency}}
- </body>
-</html>
diff --git a/example/calculator.html b/example/calculator.html
deleted file mode 100644
index bd80eb9d..00000000
--- a/example/calculator.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!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>
- <script type="text/javascript" src="../lib/jquery/jquery.js"></script>
- <script type="text/javascript" src="../angular-debug.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- var scope = angular.compile(document);
- scope.a = 3;
- scope.$init();
- scope.$eval();
- });
- </script>
- </head>
- <body>
- Quantity: <input type="text" name="a" value="2">
- *
- Cost: <input type="text" name="b" value="3.4">
- = {{a * b | currency}}
- </body>
-</html>
diff --git a/example/memoryLeak.html b/example/memoryLeak.html
deleted file mode 100644
index 19b0d45d..00000000
--- a/example/memoryLeak.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!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>
- <script type="text/javascript" src="../lib/underscore/underscore.js"></script>
- <script type="text/javascript" src="../lib/jquery/jquery-1.3.2.js"></script>
- <script type="text/javascript" src="../src/angular-bootstrap.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- var scope = angular.compile(document);
- scope.init();
- scope.set("add", function(){
- var partial = $("#partial");
- //id++;
- partial.html('<div>{{ error() }}<br/></div>');
- var scope = angular.compile(partial);
- scope.set("hello", function (){
- return 'who dat?';
- });
- scope.set("error", function (){
- this.misko.length;
- });
- function XXXXXXXXX(){};
- scope.set('xxx', new XXXXXXXXX());
- scope.set("names", ["adam", "misko", "shyam"]);
- scope.init();
- });
- scope.set("remove", function(){
- var partial = $("#partial");
- /*
- partial.find('*').andSelf().each(function(){
- var scope = $(this).data('scope');
- if (scope) {
- delete scope.state;
- delete scope.widgets;
- }
- var cntl = $(this).data('controller');
- if (cntl) {
- delete cntl.view;
- }
- $(this).removeData();
- });
- */
- partial.removeData('scope');
- partial.children().remove();
- });
- });
- </script>
- <link rel="StyleSheet" type="text/css" href="../css/angular.css"/>
- </head>
- <body>
- <input type="button" value="add" ng:click="add()"/>
- <input type="button" value="remove" ng:click="remove()"/>
- <div id="partial"></div>
- </body>
-</html>