Top "Angularjs-controller" questions

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

AngularJS: open a new browser window, yet still retain scope and controller, and services

I'm writing an angularJS app. In this particular controller, I open a new browser window through the $window.open service. …

javascript angularjs angularjs-scope angularjs-service angularjs-controller
Angularjs Uncaught Error: [$injector:modulerr] when migrating to V1.3

I am learning Angular.js and I am not able to figure out whats wrong with this simple code. It …

javascript angularjs angularjs-scope angularjs-service angularjs-controller
AngularJS: $scope.array.push() does not update the view, even with $apply

I'm trying to learn AngularJS and there is this thing that I don't understand, which seems like all the internet …

angularjs angularjs-scope angularjs-ng-repeat angularjs-controller
Calling directive's methods from parent controller in AngularJS

I am using AngularJS with the alias controllers pattern. I can't access (or I don't know how to) directive methods …

javascript angularjs events angularjs-directive angularjs-controller
AngularJS ng-controller not working

I just now started learning on AngularJS from w3schools. I am trying to practice examples what ever they have …

javascript html angularjs angularjs-controller
How to share the $scope variable of one controller with another in AngularJS?

I have this: app.controller('foo1', function ($scope) { $scope.bar = 'foo'; }); app.controller('foo2', function ($scope) { // want to …

javascript angularjs angularjs-scope angularjs-controller
AngularJs: Binding ng-model to a list of radio buttons

Im trying to bind the selected value in a list of radio buttons to an ng-model I have: <!DOCTYPE …

javascript angularjs angularjs-scope angularjs-controller
Karma testing: TypeError: Attempted to assign to readonly property

When I am trying to unit test my controller I am getting the error.When I debug the testcase's expect …

angularjs unit-testing karma-jasmine angularjs-controller
TypeError: (intermediate value)(intermediate value).success is not a function (angular)

I have difficulties understanding this error... I dont quite understand why its not a function.... angular.module('mkApp').factory('mkService', …

javascript angularjs angularjs-scope angularjs-controller angularjs-http
How to retrieve the value from textbox using AngularJs?

$scope.add=function() { //How to retrieve the value of textbox } <input type='text'><button ng-click='add()'&…

javascript angularjs angularjs-controller angularjs-ng-click angular-ngmodel