Skip to content

Commit c423dc8

Browse files
committed
Merge pull request #53 from psalaberria002/default-template-cache
Default template in cache instead of a separate file.
2 parents ddb5b3d + 76a263f commit c423dc8

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

rzSliderTpl.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

rzslider.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@
1313

1414
angular.module('rzModule', [])
1515

16+
.run(function($templateCache) {
17+
var template = '<span class="rz-bar"></span>' + // 0 The slider bar
18+
'<span class="rz-bar rz-selection"></span>' + // 1 Highlight between two handles
19+
'<span class="rz-pointer"></span>' + // 2 Left slider handle
20+
'<span class="rz-pointer"></span>' + // 3 Right slider handle
21+
'<span class="rz-bubble rz-limit"></span>' + // 4 Floor label
22+
'<span class="rz-bubble rz-limit"></span>' + // 5 Ceiling label
23+
'<span class="rz-bubble"></span>' + // 6 Label above left slider handle
24+
'<span class="rz-bubble"></span>' + // 7 Label above right slider handle
25+
'<span class="rz-bubble"></span>'; // 8 Range label when the slider handles are close ex. 15 - 17
26+
$templateCache.put('rzSliderTpl.html', template);
27+
})
28+
1629
.value('throttle',
1730
/**
1831
* throttle

0 commit comments

Comments
 (0)