Add Intel copyright header.
[profile/ivi/cowhide.git] / src / javascripts / cowhide-ng-slider.js
1 /*
2  * Copyright (c) 2012, Intel Corporation.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9
10 (function(ng, module) {
11   'use strict';
12
13   module.directive('chSlider', function() {
14     return {
15       restrict: 'E',
16       scope: {
17         height: '@',
18         orientation: '@'
19       },
20       template: '<div class="ch-slider" data-height data-orientation></div>',
21       replace: true,
22
23       link: function postLink(scope, iElement, iAttrs) {
24         iElement.ch_slider({
25           orientation: iAttrs.orientation
26         });
27       }
28     };
29   });
30 })(window.angular, window.cowhide_ng_module);