Hi, 

In app.js you have declared a dependency on a module (vApp.controller), but 
this module has not been defined:
var app = angular.module('vApp', ['vApp.controller']);


In UserControllers.js change the following line (which retrieves the module 
with the name vApp)
var app= angular.module('vApp');

to this, which defines a module with the name vApp.controller (with no 
dependencies):
var app= angular.module('vApp.controller', []);


Also - you are mixing controllerAs syntax with the traditional syntax.  If 
you want to use the controllerAs syntax (Hello as first), then:
 app.controller('Hello', ['$scope', function ($scope) {
      
        this.id = 'ID';
        this.content = 'some stuff';
    }]);

Regards
Justin

On Tuesday, 16 December 2014 22:27:59 UTC+2, CannotCode wrote:
>
> Here is the link to the code: 
> http://plnkr.co/edit/feFmXdCFJEWaNJZV44oQ?p=preview
>
> On Tuesday, 16 December 2014 21:09:35 UTC+1, CannotCode wrote:
>>
>> Hello everybody!
>>
>> I am currently working on a simple web application and decided to go with 
>> AngularJS. 
>> My problem is that when I put the Angular controller into a separate js 
>> file, the app cannot find thse files and thus angular does not work.
>> I know that my angular works as it is fine if I put a script into my jsp 
>> file straight. 
>>
>> There is a detail that might be a reason: whenever I check the Network of 
>> my code in the browser, the js files that are not found considered to 
>> have a text/html type. Might that be a problem and if yes, how should I 
>> solve it? Not sure if I should post any code. If needed, will be provided.
>>
>> Thank you in advance. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to