Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
chore(select): remove inlined template
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jan 20, 2014
1 parent 0cc99cf commit b6dd620
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,13 @@

angular.module('mgcrea.ngStrap.select', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.helpers.parseOptions'])

.run(function($templateCache) {

var template = '' +
'<ul tabindex="-1" class="select dropdown-menu" ng-show="$isVisible()" role="select">' +
'<li role="presentation" ng-repeat="match in $matches" ng-class="{active: $isActive($index)}">' +
'<a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"></a>' +
'<i class="glyphicon glyphicon-ok" ng-if="$isMultiple"></i>' +
'</li>' +
'</ul>';

$templateCache.put('$select', template);

})

.provider('$select', function() {

var defaults = this.defaults = {
animation: 'animation-fade',
prefixClass: 'select',
placement: 'bottom-left',
template: '$select',
template: 'select/select.tpl.html',
trigger: 'focus',
container: false,
keyboard: true,
Expand Down

0 comments on commit b6dd620

Please sign in to comment.