Skip to main content

All Questions

Filter by
Sorted by
Tagged with
-2 votes
1 answer
46 views

Angular 1 , unable to display records [duplicate]

<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> <script type="text/javascript"> ...
Amarreddyy87's user avatar
1 vote
2 answers
638 views

can't bind scope variables in angularjs

I have these files: index.html: <!DOCTYPE html> <html> <head> <title>Gestore Anagrafica</title> </head> <body> <div> <h3>Insert ...
JoulinRouge's user avatar
0 votes
3 answers
1k views

TypeError: $controller is not a function + Controller inside controller

I am new to Angular JS and trying to call a controller inside another controller but getting below error. ionic.bundle.js:21157 TypeError: $controller is not a function at new <anonymous> (...
Jigar Naik's user avatar
  • 1,994
4 votes
4 answers
121 views

AngularJS - controller and factory - where am I going wrong at include/inject functions?

I'm new to Angular and cannot pinpoint where I am going wrong. I'm just trying to simply inject my factory into my controller, reference said: "Cannot read property 'validar' of undefined". I have two ...
Eduardo Andrade's user avatar
3 votes
2 answers
2k views

Error: [$injector:unpr] Unknown provider: chart.jsProvider

I am trying to use this plugin https://github.com/jtblin/angular-chart.js. And I am getting this error (I don't think the problem is with the plugin instead it's in the way I'm doing the injection!!): ...
Mahmoud Zalt's user avatar
  • 31.4k
21 votes
4 answers
34k views

AngularJS: Inject controller inside another controller from the same module

Is possible to inject a controller into another controller that is part of the same module? example: var app = angular.module('myAppModule', []) .controller('controllerOne', ['$scope', function(...
Joseph Freeman's user avatar
0 votes
2 answers
152 views

Inject one service (factory) into another, both of which are async

I should do the following: query an API for a large dataset of names, probably via a service/factory, using $q (async) have another service (also async) which should only return elements of the above ...
developer10's user avatar
  • 1,500
0 votes
3 answers
274 views

Will a $get request inside a factory, fire twice when using dependency injection across many controllers?

Background I'm about to hook up my angular project to my first API endpoint. I've always created factories that are filled with fake JSON data, so this is new for me. HTML First Question: Lets ...
John Abraham's user avatar
  • 18.8k
6 votes
1 answer
2k views

What is the meaning of underscores on arguments (of the inject function)?

I've been writing tests for some Angular components, using a syntax that I found on google a while ago: describe('Directive: myDir', function () { beforeEach(module('myApp')); beforeEach(...
Abraham P's user avatar
  • 15.5k
8 votes
1 answer
14k views

Unable to inject `$http` using AngularJS explicit `app.controller` syntax?

I have been told that I should be using the app.controller syntax, in order to support minification. Rewriting the sample (tutorial) example, and I found that I couldn't get it to work: use 'strict';...
user2283066's user avatar