Skip to content

Commit 5520b73

Browse files
author
TheHalcyonSavant
committed
typo fixes 1
1 parent c7fbb5b commit 5520b73

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: 1820EN_04_Code/08 -filters - array filters full example/arrayFilters.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ angular.module('arrayFilters', [])
5252
$scope.pages.push(i);
5353
}
5454
});
55-
55+
5656
$scope.criteria = '';
5757
$scope.pageNo = 0;
58-
58+
5959
$scope.setActivePage = function (pageNo) {
6060
if (pageNo >=0 && pageNo < $scope.pages.length) {
6161
$scope.pageNo = pageNo;

Diff for: 1820EN_09_Code/04_validate-equals_directive/directive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
angular.module('directives.validate-equals', [])
1+
angular.module('directives', [])
22

33
.directive('validateEquals', function() {
44
return {

Diff for: 1820EN_09_Code/04_validate-equals_directive/directive.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe('validateEquals directive', function() {
22
var $scope, modelCtrl, modelValue;
33

4-
beforeEach(module('directives.validate-equals'));
4+
beforeEach(module('directives'));
55

66
beforeEach(inject(function($compile, $rootScope) {
77
$scope = $rootScope;
@@ -54,7 +54,7 @@ describe('validateEquals directive', function() {
5454
expect(modelValue.testValue).toBe(undefined);
5555
});
5656

57-
it('should be invalid if the input value changes to be the same as the reference', function() {
57+
it('should be valid if the input value changes to be the same as the reference', function() {
5858
modelValue.compareTo = 'different';
5959
$scope.$digest();
6060
expect(modelCtrl.$valid).toBeFalsy();

0 commit comments

Comments
 (0)