Lines Matching full:scope
13 '$scope', '$window', 'APIUtils', 'dataService',
14 function($scope, $window, APIUtils, dataService) { argument
15 $scope.dataService = dataService;
16 $scope.hardwares = [];
17 $scope.originalData = {};
18 $scope.customSearch = '';
19 $scope.searchTerms = [];
20 $scope.loading = true;
23 $scope.hardwares = data;
24 $scope.originalData = JSON.stringify(originalData);
25 $scope.loading = false;
28 $scope.clear = function() {
29 $scope.customSearch = '';
30 $scope.searchTerms = [];
33 $scope.doSearchOnEnter = function(event) {
35 $scope.customSearch.replace(/^\s+/g, '').replace(/\s+$/g, '');
37 $scope.searchTerms = $scope.customSearch.split(' ');
40 $scope.searchTerms = [];
45 $scope.doSearchOnClick = function() {
47 $scope.customSearch.replace(/^\s+/g, '').replace(/\s+$/g, '');
49 $scope.searchTerms = $scope.customSearch.split(' ');
52 $scope.searchTerms = [];
57 $scope.filterBySearchTerms = function(hardware) {
58 if (!$scope.searchTerms.length) return true;
60 for (var i = 0, length = $scope.searchTerms.length; i < length; i++) {
62 $scope.searchTerms[i].toLowerCase()) == -1)