xref: /openbmc/phosphor-webui/app/common/directives/loader.js (revision bbcf670a1c8c7463556eb006bc8f6bbfe29af3e4)
1428375e8SMichael Daviswindow.angular && (function (angular) {
2428375e8SMichael Davis    'use strict';
3428375e8SMichael Davis
4428375e8SMichael Davis    angular
5428375e8SMichael Davis        .module('app.common.directives')
6428375e8SMichael Davis        .directive('loader', function () {
7428375e8SMichael Davis            return {
8428375e8SMichael Davis                'restrict': 'E',
9*bbcf670aSEd Tanous                'template': require('./loader.html'),
10428375e8SMichael Davis                scope: {
11428375e8SMichael Davis                    loading: '='
12428375e8SMichael Davis                }
13428375e8SMichael Davis            };
14428375e8SMichael Davis        });
15428375e8SMichael Davis
16428375e8SMichael Davis})(window.angular);
17