If I declared module inside an IIFE in Angular JS
(function(){
  var app=angular.module("myapp",[]); 
  var mapController = function () {
    var mapScope = this;
  };
  app.controller("mapController", [mapController]);
})()
How is it going to be accessible to another controller, which is defined inside another IIFE?
Suppose I have another controller in a different JS file table controller. How can I access app module there?
app.controller("tableController", ["$http", tableController,commonService]);
In other words, can we create angular JS app without a single global variable where control are separated in multiple JS files?

mapController)?