Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
75 views

Controller is not registered error after adding ngRoute `.config`

Controller is not recognizing - AngularJS error I've a controller defined in controllerPloyee.js called controllerPloyee which was working before i added the ngRoute and made to route. The error that ...
Thomas's user avatar
  • 13
1 vote
2 answers
91 views

Uncaught Error: [$injector:nomod] while Angularjs separating code into Controller and Service files

I'm trying to split the code into Controller and Service files as below. Module.js /// <reference path="../angular.js" /> /// <reference path="../angular-resource.js" /> var ...
user11130182's user avatar
0 votes
1 answer
66 views

One controller not working out of the two I used in my angular module

I used two controllers in my angular module, but one is not working, I don't know what is wrong, I've browsed online for solution but I can't get what's wrong. var app = angular.module('myWebsite'...
atomty's user avatar
  • 187
2 votes
2 answers
221 views

Angularjs Modules - Packaging Directives and Their Controllers

I have the following javascript code and i ran into a issue: My .js file angular.module('MyApp',['ngMaterial','ngMessages']) .controller('MainCtrl',['$mdDialog',function($mdDialog'){ this.openDialog ...
John Tan's user avatar
0 votes
3 answers
545 views

angularjs 1 manual bootstrap doesnot work

I am new to angularjs. I tried to create 2 different modules in an single js file and them manually bootstrap one of them to a element. This was suggested in one of the stackoverflow questions. But ...
Amar Dev's user avatar
  • 1,479
1 vote
1 answer
457 views

Argument 'indexController' is not a function, got undefined

This has been asked before but it didn't answer my question. I am pretty new to angular and I am just putting things together at the moment. I am trying to get my factory to work inside my controller. ...
Mike3355's user avatar
  • 12.2k
0 votes
1 answer
2k views

AngularJs - Injecting child module into other child module

I have a scenario which might sound stupid but I'm stuck and trying to understanding what might be causing it to not work. I have an angular app which has three modules for now var app = angular....
Ali Baig's user avatar
  • 3,867
0 votes
1 answer
1k views

Calling service.js file from controller

I have a service file which needs to be called from the controller. Can someone please tell the code which should go in the controller to get this service file. Thank you. This is my service file code ...
Gaurav Ram's user avatar
  • 1,085
1 vote
5 answers
5k views

How can I have multiple controller files?

SOLVED So after viewing your responses and making minor changes to my code, I found a simple typo which prevented me to reach the result I was after. So thank you all to helping with where I was ...
MattVon's user avatar
  • 521
1 vote
2 answers
84 views

Controller not working in Angular JS

I am new to Angular JS. To see the working of controller, I implemented this simple code where two numbers are taken as an input from the users and their sum is calculated in the controller and the ...
Dev Choudhary's user avatar
1 vote
1 answer
11k views

Why am I getting the Angular $injector:modulerr error here? Using 1.5 beta

The markup <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Angular I&...
Leon Gaban's user avatar
  • 39.4k
0 votes
2 answers
134 views

Function problems in AngularJs

I'm a beginner in Angular and I have a problem with the functions. I have a simple code. In that there are two alerts to probe they are not getting called. HTML <div data-ng-controller="MainCtrl"&...
Lzarra's user avatar
  • 3
1 vote
2 answers
2k views

How to solve angular module got undefined

I have four controllers in separate files InvoiceCtrl BillingCtrl InvoicePaymentCtrl InvoiceViewCtrl 2, 3, 4 have this angular.module('invoice.controller',[]) 1 has this angular.module('test',[]) in ...
Binsoi's user avatar
  • 383
5 votes
5 answers
946 views

Angular.js Controller Not Working

I'm new to Angular and I'm going through the Intro to Angular videos from the Angular site. My code isn't working and I have no idea why not. I get the error Error: ng:areq Bad Argument Argument '...
Halcyon's user avatar
  • 15k
0 votes
2 answers
177 views

Swapping AngularJS syntax causing an error

so I have been making websites for a while now but only really things for display and information. I thought I would have a go with AngularJs, so I followed the guide on codeschool. I had worked for a ...
Simon Harris's user avatar

15 30 50 per page