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

fix: make compatible with Angular 1.5 and non-cached templates #1630

Merged
merged 1 commit into from
May 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
}
};
}]);
}]);