style(examples): clean up dead examples

This commit is contained in:
Misko Hevery 2011-09-06 12:04:47 -07:00 committed by Igor Minar
parent ccda436f94
commit df6d2ba326
6 changed files with 0 additions and 170 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -1,28 +0,0 @@
<!DOCTYPE HTML>
<html xmlns:ng="http://angularjs.org">
<head>
<script type="text/javascript" src="../lib/jquery/jquery-1.4.2.js"></script>
<script type="text/javascript" src="../src/angular-bootstrap.js" ng:autobind></script>
<head>
<body>
<select name='selection0' style="display:block;">
<option ng:repeat='value in ["FOO","BAR"]'">{{value}}</option>
</select>
{{selection0}} &lt;-- FOO should be shown here
<hr/>
<select ng:init="selection1='ignore'" name='selection1' style="display:block;">
<option ng:repeat='value in ["FOO","BAR"]' ng:bind-attr="{selected:'{{value==\'BAR\'}}'}">{{value}}</option>
</select>
{{selection1}} &lt;-- BAR should be shown here
<hr/>
<select ng:init="selection2=1" name="selection2" style="display:block;">
<option value="{{$index}}" ng:repeat="opt in ['zero', 'one']">{{opt}}</option>
</select>
{{selection2}} &lt;-- 1 should be shown here
</body>
</html>

View file

@ -1,24 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:ng="http://angularjs.org">
<head>
<script type="text/javascript" src="../src/angular-bootstrap.js" ng:autobind></script>
<script type="text/javascript">
angular.markup('-'+'--', function(text, textNode, parentElement) {
var compiler = this;
var index = text.indexOf('-'+'--');
if (index > -1) {
textNode.after(text.substring(index + 3));
textNode.after('<hr/>');
textNode.after(compiler.text(text.substring(0, index)));
textNode.remove();
}
});
</script>
</head>
<body>
{{1+3}}
xxx
---
xxx
<select name="something"><option selected="true">{{'a'}}</option><option value="">{{'b'}}</option><option>C</option></select></body>
</html>