/* ** Views/Partial/LCA/OtherCompound.cshtml is using this controller */ angular.module('CarbonFootprint') .controller('LCAFireEquipmentCtrl', ['$scope', '$http', '$routeParams', 'JoinSurveyItemAndParameter', '$q', 'MultiLanguageService', 'ExportCsvService', function ($scope, $http, $routeParams, JoinService, $q, MultiLanguageService, ExportCsvService) { // Multi-language resource object var resource; // This property controlls modal form, will be passed to table-edit-modal directive $scope.modalFormOption = {}; $scope.model = []; $scope.summary = []; $scope.sumKgCO2e = 0; // set $scope.baseUrl var baseUrl = $scope.baseUrl; if (typeof (baseUrl) === 'undefined' || baseUrl == null) { var arr = window.location.href.split("/"); if (arr[3].indexOf('app') == 0) baseUrl = ''; else baseUrl = '/' + arr[3]; $scope.baseUrl = baseUrl; } // Sync 'ParameterID' based on 'Source', because ngModel of