Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 1 | /** |
| 2 | * Controller for server |
| 3 | * |
| 4 | * @module app/serverHealth |
| 5 | * @exports inventoryController |
| 6 | * @name inventoryController |
| 7 | * @version 0.1.0 |
| 8 | */ |
| 9 | |
| 10 | window.angular && (function (angular) { |
| 11 | 'use strict'; |
| 12 | |
| 13 | angular |
| 14 | .module('app.serverHealth') |
| 15 | .controller('inventoryController', [ |
| 16 | '$scope', |
| 17 | '$window', |
| 18 | 'APIUtils', |
| 19 | 'dataService', |
| 20 | function($scope, $window, APIUtils, dataService){ |
| 21 | $scope.dataService = dataService; |
| 22 | |
| 23 | // Force to top of page when viewing single group |
| 24 | $window.scrollTo(0, 0); |
| 25 | } |
| 26 | ] |
| 27 | ); |
| 28 | |
| 29 | })(angular); |