Top "Angularjs-controller" questions

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

How am I supposed to pass data from serverside controller an AngularJS controller?

I've encountered what I believe to be a common scenario, in which I am using an MVC pattern (specifically ASP.…

javascript angularjs asp.net-mvc angularjs-controller ng-init
Get Current Controller Name in AngularJS

I'm trying to write a directive that will generate a grid. The following code works but I have to specify …

javascript angularjs angularjs-directive angularjs-controller
Angular ui.router, call parent controller function from child controller?

I'm using Angular with ui.router and have setup a nested view. The parent view has a div whose visibility …

angularjs angular-ui angular-ui-router angularjs-controller
Mocking the event object in AngularJS event unit testing

I have the following test: it('Should keep location when user rejects confirmation', inject(function ($controller, $rootScope) { var confirmStub = sinon.…

javascript unit-testing angularjs angularjs-controller
Simple Angular $routeProvider resolve test. What is wrong with this code?

I have created a simple Angular JS $routeProvider resolve test application. It gives the following error: Error: Unknown provider: dataProvider &…

angularjs angularjs-directive angularjs-service angularjs-routing angularjs-controller
AngularJS : How to create a two-way data binding between two isolated controllers and a shared service?

I am trying to create a two-way data binding between two isolated controllers and a shared service (which provides another …

javascript angularjs angularjs-scope angularjs-controller
Pass Arguments from directive to controller function

I've seen lots of these questions but haven't found a solution that works. here is a fiddle that doesn't work …

javascript angularjs angularjs-directive angularjs-controller
AngularJS - How do I avoid using $timeout to wait for an element to be created?

Here is the idea: So I am trying to use an external library function to create some manipulation in the …

angularjs angularjs-directive angularjs-service jsplumb angularjs-controller
Using AngularJS and jsPlumb (use jsPlumb functions in AngularJS controller)

So I have a project that I am working on and it requires that I use jsPlumb for graphical elements …

angularjs jsplumb angularjs-controller angularjs-ng-click