1/** 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 25 //Scroll to target anchor 26 $scope.gotoAnchor = function () { 27 $location.hash('upload'); 28 $anchorScroll(); 29 }; 30 } 31 ] 32 ); 33 34})(angular); 35