Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
style(phone-list.directive.js): change code indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
felixzapata committed Jun 20, 2016
1 parent ef06bde commit c3b9869
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions app/phone-list/phone-list.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ angular.
}
}
]).
directive('informOrder', [function () {
var ariaStatusSort = document.querySelector('.aria-status-sort');
return {
restrict: 'A',
link: function ($scope) {
$scope.$watch('$ctrl.orderProp', function (order) {
if(order === 'age') {
ariaStatusSort.innerHTML = 'Items filter by newest'
} else {
ariaStatusSort.innerHTML = 'Items filter by alphabetical order'
}

});
directive('informOrder', [function () {
var ariaStatusSort = document.querySelector('.aria-status-sort');
return {
restrict: 'A',
link: function ($scope) {
$scope.$watch('$ctrl.orderProp', function (order) {
if(order === 'age') {
ariaStatusSort.innerHTML = 'Items filter by newest'
} else {
ariaStatusSort.innerHTML = 'Items filter by alphabetical order'
}

});
}
}
}
}
}
]);

0 comments on commit c3b9869

Please sign in to comment.