Top "Angularjs-controller" questions

The AngularJS controller exposes the data that is to be displayed into the HTML view.

Accessing inherited scope with Controller As approach

With the original way to define controllers, accessing the parent's scope was fairly trivial, since the child scope prototypically inherits …

angularjs angularjs-scope angularjs-controller
how to return rejected/failure promise to through jasmine spy to an angular controller in a unit test

I am using jasmine for testing my angular controllers. I am catching errors and success in the .then(successCallback, errorCallback) …

javascript angularjs unit-testing angularjs-controller karma-jasmine
AngularJS - Scope is not what expected inside an ng-click event of ng-repeat

I have this code snippet: <ul> <li ng-repeat="message in messages"> <button ng-click="send()">…

angularjs scope angularjs-controller
AngularJS - How to access to the next item from a ng-repeat in the controller

I'd like to access to the parameters of the next item on screen when clicking on a button. I use …

angularjs angularjs-ng-repeat angularjs-controller
Uncaught Error: Module 'myApp' is not available! (AngularJS)

I'm working on angular tutorial and i'm having a problem on beginning. Loading myApp module throws error. As explained in …

javascript html angularjs angularjs-directive angularjs-controller
How to reuse one controller for 2 different views?

I have defined one controller, and apply it to 2 views with small differences. Angular code: app.controller('MyCtrl', function($scope) { $…

angularjs angularjs-controller
Angular JS TypeError: $http is not a function

I have read through all the posts where people get this issue where $http is not a function, and it …

javascript angularjs promise angularjs-controller angularjs-http
How can we test non-scope angular controller methods?

We have few methods in Angular Controller, which are not on the scope variable. Does anyone know, how we can …

angularjs jasmine karma-runner angularjs-controller angularjs-http
AngularJs Directives Loaded Event

I have just started using AngularJs directives, using the resources here, here and here. I have a situation where i …

angularjs angularjs-directive angularjs-controller