Skip to content

Commit

Permalink
correctly handle isolation scope of 'placeholder' attribute, fixed dn…
Browse files Browse the repository at this point in the history
  • Loading branch information
dnauck committed Jul 13, 2015
1 parent 8e891ef commit 990d1b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* change main proeprty of package.json to final build in dist folder, fixes #4
* use ng-if for search parameter input to avoid rendering issues and performance
* Hide in use search parameter suggestions, fixed issue #8
* correctly handle isolation scope of 'placeholder' attribute, fixed #15

### 1.1.1 - 03 February 2015
* update README with latest changes to dist files in bower package
Expand Down
5 changes: 3 additions & 2 deletions src/angular-advanced-searchbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ angular.module('angular-advanced-searchbox', [])
restrict: 'E',
scope: {
model: '=ngModel',
parameters: '='
parameters: '=',
placeholder: '@'
},
replace: true,
templateUrl: 'angular-advanced-searchbox.html',
controller: [
'$scope', '$attrs', '$element', '$timeout', '$filter',
function ($scope, $attrs, $element, $timeout, $filter) {

$scope.placeholder = $attrs.placeholder || 'Search ...';
$scope.placeholder = $scope.placeholder || 'Search ...';
$scope.searchParams = [];
$scope.searchQuery = '';
$scope.setSearchFocus = false;
Expand Down

0 comments on commit 990d1b4

Please sign in to comment.