blob: 0eef4ea06e650f89efcc0a5d0a98c29ba9b045a7 [file] [log] [blame]
Michael Davis43366db2017-05-15 18:12:35 -05001/**
2 * Controller for firmware
3 *
4 * @module app/configuration
5 * @exports firmwareController
6 * @name firmwareController
7 * @version 0.1.0
8 */
9
10window.angular && (function (angular) {
11 'use strict';
12
13 angular
14 .module('app.configuration')
15 .controller('firmwareController', [
16 '$scope',
17 '$window',
18 'APIUtils',
19 'dataService',
20 '$location',
21 '$anchorScroll',
22 function ($scope, $window, APIUtils, dataService, $location, $anchorScroll) {
23 $scope.dataService = dataService;
24
Michael Davis43366db2017-05-15 18:12:35 -050025 //Scroll to target anchor
26 $scope.gotoAnchor = function () {
27 $location.hash('upload');
28 $anchorScroll();
29 };
30 }
31 ]
32 );
33
34})(angular);