\'use strict\';
var trkiApp = angular.module(\'trkiApp\', [
\'trkiApp.tStatus\',
\'trkiApp.feed\'
]);
var tStatus = angular.module(\'trkiApp.tStatus\', [])
I had a similar issue when trying to inject dependencies from another module. Alex's answer didn't work for me. I was getting a circular dependencies error.
To fix it, make sure you are including all the module-specific JavaScript before. For example moduleA
was defined in another JS file.
var app = angular.module('plunker', ['moduleA']);
app.controller('MainCtrl', function($scope, MainService) {
$scope.name = 'World';
$scope.hello = MainService.hello();
});
Working example Plunker