I have an application that uses Angular and it works properly nearly (nearly) everywhere. Suddenly we deployed a version on a Linux server and it fails. This is the only place that we ever experienced an issue.
My app dinamically loads modal windows and this is the line where it fails:
var $injector = angular.injector(['ng', 'AccountApp']);
For some reason my AccountApp which is declared on a separated .js file it's not loaded properly.
var ngapp = angular.module('AccountApp', []);
ngapp.controller('MainController', ['$scope', function ($scope) {
...
I've been looking for a solution for about a week, testing some minor changes, loading it in a different way but nothing solved my problem. The weird thing is it only happens in this specific server:
Here it's the uname command:
Linux xxxxxx 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
My question is a bit different to solve the problem, what is the reason that a Linux distribution could affect Angular? Might be Apache? I couldn't find anything that guides me to the answer.
This is the error message I get:
Failed to instantiate module ngapp due to: Error: [$injector:nomod] http://errors.angularjs.org/1.2.27/$injector/nomod?p0=ngapp at Error (native)
Thanks in advance.