Open oogwayidk opened 7 years ago
I think there's an error with the ternary operator in the template. It should be as follows otherwise it'll try to use md-switch when material is not present:
(material ? '<md-switch class="ng-csv-import-header-switch" ng-model="header"></md-switch>' : '<input type="checkbox" ng-model="header"></div>') +
Orignal: (material ?'<input type="checkbox" ng-model="header"></div>' : '<md-switch class="ng-csv-import-header-switch" ng-model="header"></md-switch>') +
(material ?'<input type="checkbox" ng-model="header"></div>' : '<md-switch class="ng-csv-import-header-switch" ng-model="header"></md-switch>') +
The visible error is when material is not selected nothing will appear.
I think there's an error with the ternary operator in the template. It should be as follows otherwise it'll try to use md-switch when material is not present:
(material ? '<md-switch class="ng-csv-import-header-switch" ng-model="header"></md-switch>' : '<input type="checkbox" ng-model="header"></div>') +
Orignal:
(material ?'<input type="checkbox" ng-model="header"></div>' : '<md-switch class="ng-csv-import-header-switch" ng-model="header"></md-switch>') +
The visible error is when material is not selected nothing will appear.