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
184 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
196 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"> ...
0
votes
0answers
11 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
23 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
31 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) { ...
0
votes
0answers
394 views

Setting Model in AngularJS Control Not Updating View (something…)

I am experiencing issues with updating values in my AngularJS controller and having them properly reflecting in my model. I have the following form in my view: <form name="formSignIn" ...
0
votes
0answers
225 views

ng-repeat load new updated array model but do not clear the previous value of array in template

I have a list of articles, every article has a list of comments with user.name and user._id of that comment. Click to each user, it shows a chat box to send message to that user. Everything is ok with ...
0
votes
0answers
136 views

Dynamic routing with dynamic controllers in AngularJS

I am currently using require.js and angular. Since I have a very long list of custom views, each for a different task, I've cooked up a way of including them dynamically using requirejs. First a ...
0
votes
0answers
209 views

How can I write generic Angular JS controller logic?

I'm using Angular JS to work on a proof of concept for a SPA that needs to be able to handle dynamic form generation. This project is essentially an interview style application that will have a user ...
0
votes
0answers
74 views

How to have page controller execute directive functionality AngularJS

Lets say I have a directive that has an isolate scope and that scope have a method on it. Now is there an Angular way to allow the page controller to be able to call functionality declared in a ...
0
votes
0answers
342 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
99 views

How to create nested views and controllers in AngularJS without using ng-controller in the attribute

I have an application wide router, where the routes specify the template and controller to instantiate while navigating: $routeProvider .when('/', { templateUrl: 'views/login.html', controller: ...
0
votes
0answers
242 views

AngularJS - Create a directive to fire an event (function) when the current element is appended to the DOM

I am trying to find a way to detect when an element is finally appended to DOM? Is there any directive that I can create and attach to that element so it will detect the moment of appending? By ...
0
votes
0answers
34 views

Trouble with editing objects in AngularJs

EDIT: the code on the plunkr works as it should, but not on my local machine, the only difference is that locally edit-website.html template is stored in partials folder, which is refferenced in the ...
0
votes
0answers
207 views

angular ui-select2: fire highlight events programmatically (without using JQuery)

is there a way to call highlight events of select2 in a programmatic way? something like "ng-highlight"... that will enable writing the callback function of the item-hover in the controller. ...

15 30 50 per page