I want to use the value of $scope.data.range from controller.js in map.js.
This is my controller.js
angular.module('starter.controllers', [])
.controller("LocController",function($scope,$rootScope){
$scope.data.range=5000;
})
How can I use this $scope.data.range in map.js which is a simple javascript file.