2
votes
1answer
2k views

Jquery animation in a AngularJS controller or directive?

I have an app in AngularJS and in one of my view I want to implement some JQuery animation..nothing too fancy..just hide/slide of a divs ..those divs are created from ng-reapet loop and I need access ...
2
votes
0answers
121 views

Angular directive in ng-repeat doesn't call link

I'm fairly new to Angular and am having some trouble getting a directive to render within an ng-repeat. This is probably a lack of experience on my part so any help is greatly appreciated. Here are ...
1
vote
2answers
79 views

ng-repeat inserting empty anchor tags

I'm trying to create a menu using angular. A menu item can have children requiring another ng-repeat to print the sub nav items. I'm noticing some strange behavior when attempting to insert an anchor ...
1
vote
1answer
914 views

angularjs - how to get in the controller the index of an item in a ng-repeat filter based on the value of one of its properties?

I use a ng-repeat in my html file to display filtered items: <li ng-repeat="item in (filteredItems = (items | filter:query))"> {{ item.name }} </a> In the controller, I'd like to ...
1
vote
1answer
486 views

AngularJS and ng-repeat elements do not exist in DOM yet - getting NULL exepction

So I am trying to use an external library function to create some manipulation in the DOM in one of my controllers that my ng-repeat is connected to. The problem is the following: I am calling that ...
1
vote
2answers
1k views

ng-repeat not updating using $scope.$watch

I need some help in displaying the results of an update in my ng-repeat directive from $watch ProductsCtrl is watching for a change of product type and when it detects one it searches for Products ...
0
votes
3answers
69 views

AngularJS Won't Recognize Multiple Controllers in Single HTML File

I'm finding a weird instance where I am trying to use multiple AngularJS controllers on a single HTML page, and the page will either a, recognize only one of the controllers, or b, recognize none of ...
0
votes
3answers
101 views

When i require ngModel controller how do I access a property of the model controller

I am using ng-repeat and setting a model with it similar to the following <div ng-repeat="thing in things" ng-model="thing" my-directive> {{thing.name}} </div> then in my ...
0
votes
1answer
252 views

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 a ng-repeat in my html file: <li ng-repeat="item in items | filter:query" ...
0
votes
1answer
29 views

angularjs app design multiple instances of the same component (directive or directive+controller)

My app needs to have multiple instances of a component that manages a complex model. to display the model and the UI/DOM logic including a template with child directives I'v created a directive, the ...
0
votes
1answer
130 views

AngularJs pass item property in ng-repeat to controller

I need to pass an item property in an ng-repeat to the controller like this: <li ng-repeat="feed in feeds | filter:customFilter(feed,feed.publishedDate) "> Sending feed.publishedDate like ...
0
votes
1answer
38 views

Angularjs app logic structure help required

I've recently started with Angular and would really appreciate some help on how to properly structure my code the angular way. This is more of a meta question rather then technical question. I have ...
0
votes
1answer
229 views

binding a ng-repeat child object to another child object (zipcode +city!)

Mainly psuedo code so please dont mind if there's typos. I'm trying to figure out how to access the value of address.City.ZipCode for my controller method; since this is just a child in the address ...
0
votes
2answers
35 views

Combining ng-repeat and ng-controller to render item

I'm trying to assign a controller per item of a list so that I'm able to manipulate the list item data. The displayed information differentiate for each item. <div ng-repeat="item in items" ...
0
votes
1answer
28 views

Global search using filters and services

My purpose is to create a global search toolbar, where I can search any data in the app. I'm already using filters to search a single type of resource, like : <div ng-repeat="project in projects ...
0
votes
0answers
76 views

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 solved by using $scope.$apply, but I already use it and it does nothing. Basically, I ...
0
votes
1answer
61 views

Initiating directive from controller

I'm having trouble figuring out a way to initiate a directive once the data has been returned. I'm trying to build a report using html tables and ng-repeat. The report object is generated using a ...
0
votes
1answer
81 views

ng-repeat duplicating items after page reload

I have an angularjs application, with a node.js and express backend, so I'm not using angular's routings. When I refresh the page using the browser's refresh button, my Items on the page that are ...
0
votes
0answers
254 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
1answer
399 views

Re-binding a tree (Wijmo tree) with AngularJS

I am fairly new to AngularJS, and really struggling to re-bind a Wijmo tree (or even a tree implemented using UL and LI elements wth ng-repeat) with new data on changing of value of a Wijmo combobox ...
0
votes
2answers
186 views

AngularJS - stops working when using controllers

So I'm just now starting to get into angularJS and things were fine with tests until I got into using controllers with ng-repeat. It seems that when I use it it just doesn't connect to the controller. ...