Skip to content

Commit d6e3711

Browse files
committed
Merge pull request #16 from RyanDale/master
Fixed bugs where the header or separator input fields would disappear…
2 parents 2018b11 + 0130fa3 commit d6e3711

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/angular-csv-import.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ csvImport.directive('ngCsvImport', function() {
1212
header: '=',
1313
headerVisible: '=',
1414
separator: '=',
15+
separatorVisible: '=',
1516
result: '='
1617
},
17-
template: '<div><div ng-show="header && headerVisible"><div class="label">Header</div><input type="checkbox" ng-model="header"></div>'+
18-
'<div ng-show="separator" ><div class="label">Seperator</div><input type="text" ng-change="changeSeparator" ng-model="separator"></div>'+
18+
template: '<div><div ng-show="headerVisible"><div class="label">Header</div><input type="checkbox" ng-model="header"></div>'+
19+
'<div ng-show="separatorVisible" ><div class="label">Seperator</div><input type="text" ng-change="changeSeparator" ng-model="separator"></div>'+
1920
'<div><input class="btn cta gray" type="file"/></div></div>',
2021
link: function(scope, element) {
2122
element.on('keyup', function(e){

0 commit comments

Comments
 (0)