The angularjs controler exposes the data that is to be displayed into the html view. It plays the essential role of the ModelView in the MVVM design pattern. The view is a part of the Html template.

learn more… | top users | synonyms

2
votes
0answers
41 views

How to dynamically load controller to a directive

So I have a directive that Will be acting as a side panel in my app. When a user clicks a button the side panel will open. In said side panel I need the controller and view for this area to be ...
2
votes
0answers
316 views

Nested directives - cannot pass args to controller method from child directive in Angularjs

I'm having some trouble with nested directives in angularjs. I want to call a controller method from a directive within another directive and am trying to pass arguments to it, however they are ...
1
vote
0answers
30 views

Using Restangular to add items from a nested array into an object in Angular.js

I have a model. The model has lot's of potential nested arrays. The item is a task and I can add a category to it for example. When I'm doing a new .POST how do I get the item's from the nested array ...
1
vote
0answers
222 views

Getting AngularJS Error: “[$rootScope:inprog] $digest already in progress” without a manual $apply

Other posts on this error always include someone trying to $apply without using a safe apply, but that's not the case in my example. My function IS successfully returning the data I requested from the ...
1
vote
0answers
215 views

AngularJs :: Load Data In DropDown on base of other Dropdown

Load data in my first dropdown from AngularJS then on the basis of this dropdown i want to generate next dropdown with data from another controller <ul data-role="listview" data-inset="true"> ...
1
vote
0answers
371 views

AngularJS - “10 $digest() iterations reached” when ng-view ng-repeat dependant on $routeParams

I am really new to Angular and this is the first time that I am dealing with routing, so please excuse me if my questions are a bit confusing. My actual logic and structure for this app is much more ...
0
votes
0answers
16 views

detect which directive calling a method in the controller

is there any way to detect which directive calling a function in the controller without passing any arguments from the directive itself. simple example to demonstrate what i need: controller: ...
0
votes
0answers
57 views

angular directive for tables: bind transcluded elements with ng-bind-html

I'm trying to write a generic table directive like this: <h-table rows="customers"> <h-column field="Id"> <a ng-click="editCustomer(row.Id)">{{row.Id}}</a> ...
0
votes
0answers
70 views

excel file not getting after returning from Angularjs Service

I have situation where i have to call angularjs service method to post data to C# controller which in turns return me excel file which i want to save. here is code.... HTML : <div ...
0
votes
0answers
362 views

Error: [ng:areq] from angular controller

This is a long shot, but has anyone seen this error before? I am trying to add 'Transporters' using express, angular and mongoDB. I get this error whenever I access a page ruled by the transporters ...
0
votes
0answers
59 views

Controller Design in AngularJS

I'm trying to follow some best practices outlined here: http://trochette.github.io/Angular-Design-Patterns-Best-Practices/#/inheritance_pattern And building my controller like so ...
0
votes
0answers
45 views

Leading/trailing slash in base url in angular controller

Our application running on following url format http://<server>/<app_name>/<private>, also this format http://<server>/<app_name>/<private>/ is working for us. But ...
0
votes
0answers
28 views

ng-if / manually binding controller causes DOM Node count increase

I'm writing a directive to bind a template with a controller dynamically. During this, I found that the DOM Node count kept increasing, (and the heap size too). I'm wondering what is wrong with the ...
0
votes
0answers
36 views

Should i set controller on directive or on the state config

I have a question concerning the location of placing a controller on my angularJS app. this is a snippet of my app.js: var myApp = angular.module('myApp', ['ui.router', 'ui.bootstrap']); var ...
0
votes
0answers
48 views

Clear form after submit and disable form in angular service

I create a service to upload content. it takes 4 argument which folder to update the content set the form to disabled clear form after submit create: function(folderID, text, o, master) { ...

15 30 50 per page