Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
fix(uiSelectNoChoice): make compatible with Angular 1.5
Browse files Browse the repository at this point in the history
...and non-cached templates. 

Same change introduced in 0e85670

Closes #1609
  • Loading branch information
Bogdan Alexe authored and user378230 committed May 31, 2016
1 parent 9d29307 commit c944307
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/uiSelectNoChoiceDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ uis.directive('uiSelectNoChoice',
replace: true,
transclude: true,
templateUrl: function (tElement) {
// Needed so the uiSelect can detect the transcluded content
tElement.addClass('ui-select-no-choice');

// Gets theme attribute from parent (ui-select)
var theme = tElement.parent().attr('theme') || uiSelectConfig.theme;
return theme + '/no-choice.tpl.html';
}
};
}]);
}]);

0 comments on commit c944307

Please sign in to comment.