Skip to content

Commit 3bd4abb

Browse files
Vojta JinaIgorMinar
authored andcommitted
Fixed calculator examples
* Fixed wrong reference to jquery library, and old method names (scope.$set, scope.$eval), added scope.$init() call... * Changed to use angular-debug.js * use simple assignments
1 parent 8490bb9 commit 3bd4abb

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

example/calculator-bootstrap.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
22
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
33
<head>
4-
<script type="text/javascript" src="../lib/underscore/underscore.js"></script>
5-
<script type="text/javascript" src="../lib/jquery/jquery-1.3.2.js"></script>
4+
<script type="text/javascript" src="../lib/jquery/jquery-1.4.2.js"></script>
65
<script type="text/javascript" src="../src/angular-bootstrap.js"></script>
76
<script type="text/javascript">
87
$(document).ready(function(){
9-
var scope = angular.compile(document);
10-
scope.set('a', 3);
11-
scope.updateView();
8+
scope = angular.compile(document);
9+
scope.$init();
10+
scope.a = 3;
11+
scope.$eval();
1212
});
1313
</script>
1414
</head>

example/calculator-minified_init.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
22
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
33
<head>
4-
<script type="text/javascript" src="../lib/underscore/underscore.js"></script>
5-
<script type="text/javascript" src="../lib/jquery/jquery-1.3.2.js"></script>
4+
<script type="text/javascript" src="../lib/jquery/jquery-1.4.2.js"></script>
65
<script type="text/javascript" src="../angular-minified.js"></script>
76
<script type="text/javascript">
87
$(document).ready(function(){
98
scope = angular.compile(document);
10-
scope.set('a', 3);
11-
scope.updateView();
9+
scope.$init();
10+
scope.a = 3;
11+
scope.$eval();
1212
});
1313
</script>
1414
</head>

example/calculator.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
22
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
33
<head>
4-
<script type="text/javascript" src="../lib/underscore/underscore.js"></script>
5-
<script type="text/javascript" src="../lib/jquery/jquery-1.3.2.js"></script>
6-
<script type="text/javascript" src="../angular.js"></script>
4+
<script type="text/javascript" src="../lib/jquery/jquery-1.4.2.js"></script>
5+
<script type="text/javascript" src="../angular-debug.js"></script>
76
<script type="text/javascript">
87
$(document).ready(function(){
98
var scope = angular.compile(document);
10-
scope.set('a', 3);
11-
scope.updateView();
9+
scope.a = 3;
10+
scope.$init();
11+
scope.$eval();
1212
});
1313
</script>
1414
</head>

0 commit comments

Comments
 (0)