Tagged Questions
0
votes
1answer
11 views
Iterating through an Array with Controller As Syntax -AngularJS
I am currently have trouble displaying my array using the "Controller as" syntax if I pass the $scope in to my controller it works fine but using the "Controller as" syntax and this. My array does not ...
0
votes
1answer
63 views
ng-repeat, ng-click, directive, and controller interaction
I have this directive snippet:
return {
scope: {},
restrict: 'E',
templateUrl: 'partials/order_table.html',
controller: 'OrderController as x',
link : ...
0
votes
2answers
45 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
61 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
70 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
914 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 ...
1
vote
2answers
182 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 ...
0
votes
3answers
160 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
1answer
86 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
185 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 ...
1
vote
1answer
2k 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 ...
0
votes
1answer
531 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
39 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
93 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
3answers
106 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
423 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
1answer
241 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 ...
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 ...
0
votes
2answers
226 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. ...
1
vote
1answer
517 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
2k 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 ...