Skip to content

Commit 41be93b

Browse files
committed
allow to override the templateUrl, related to #19
1 parent 07fcc1c commit 41be93b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### 2.0.1 - 14 December 2015
22
* enter and leave edit mode methods and events was not called every time due ng-if directive, fixed #17
33
* workaround a small timing issue and enable edit mode explicit on newly added parameters
4+
* allow to override the templateUrl, related to #19
45

56
### 2.0.0 - 11 December 2015
67
* Support to add, delete search parameters and change search parameter's values via ng-model, fixed issue #7, #9 and #10

src/angular-advanced-searchbox.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ angular.module('angular-advanced-searchbox', [])
2323
searchThrottleTime: '='
2424
},
2525
replace: true,
26-
templateUrl: 'angular-advanced-searchbox.html',
26+
templateUrl: function(element, attr) {
27+
return attr.templateUrl || 'angular-advanced-searchbox.html';
28+
},
2729
controller: [
2830
'$scope', '$attrs', '$element', '$timeout', '$filter',
2931
function ($scope, $attrs, $element, $timeout, $filter) {

0 commit comments

Comments
 (0)