Add Intel copyright header.
[profile/ivi/cowhide.git] / src / javascripts / cowhide-ng-header.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('chHeader', function() {
14     return {
15       restrict: 'E',
16       scope: {title: '@'},
17       template: '<div class="ch-header" data-title></div>',
18       replace: true,
19
20       link: function postLink(scope, iElement, iAttrs) {
21         iElement.ch_header('show');
22       }
23     };
24   });
25 })(window.angular, window.cowhide_ng_module);