diff --git a/ch04/js/scope_template.js b/ch04/js/scope_template.js index 6cdadfd..bf8db62 100644 --- a/ch04/js/scope_template.js +++ b/ch04/js/scope_template.js @@ -3,7 +3,7 @@ angular.module('myApp', []). $scope.valueA = 5; $scope.valueB = 7; $scope.valueC = 12; - $scope.addValues = function(v1, v2, e) { + $scope.addValues = function(v1, v2) { var v = angular.$rootScope; $scope.valueC = v1 + v2; }; diff --git a/ch04/scope_template.html b/ch04/scope_template.html index 02d915b..20d5bfd 100644 --- a/ch04/scope_template.html +++ b/ch04/scope_template.html @@ -9,7 +9,7 @@ ValueB:

Expression: {{valueA}} + {{valueB}}

Live Expression Value: {{valueA + valueB}}

-
Clicked Expression Value: {{valueC}}
diff --git a/ch05/js/filter_sort.js b/ch05/js/filter_sort.js index 9fb0123..7a34c59 100644 --- a/ch05/js/filter_sort.js +++ b/ch05/js/filter_sort.js @@ -17,7 +17,7 @@ angular.module('myApp', []) $scope.reverse = !$scope.reverse; }; $scope.filterString = ''; - $scope.setFilter = function(value){ + $scope.setFilter = function(){ $scope.filteredPlanes = filterFilter($scope.planes, $scope.filterString); }; diff --git a/ch06/directive_form.html b/ch06/directive_form.html index a9d14d4..2a851e1 100644 --- a/ch06/directive_form.html +++ b/ch06/directive_form.html @@ -8,7 +8,7 @@

Forms Directives

{{someText}}
+ ng-true-value="'AWESOME'" ng-false-value="'BUMMER'"> Checkbox: {{cbValue}}
Canon