angular.module('appControllers').controller('TrafficCtrl', TrafficCtrl); // get the main module contollers set TrafficCtrl.$inject = ['$rootScope', '$scope', '$state', '$http']; // Inject my dependencies // create our controller function with all necessary logic function TrafficCtrl($rootScope, $scope, $state, $http) { /* $state.get('weather').onEnter = function () { }; $state.get('weather').onExit = function () { }; */ // Weather Controller tasks go here };