All Questions
Tagged with angular.js array
8 questions
2
votes
3
answers
69
views
Collecting a list of documents from a factory for an AngularJS controller
With this controller I'm injecting myFactory and using Array.push() to add the array ...
3
votes
1
answer
118
views
Display captions based on video time
I need to display a "caption" from a video but I cannot use built in captions provided by a vtt file for my situation. I created an array that stores the key,value pair (time, caption). I traverse ...
0
votes
2
answers
337
views
Partitioning an array of objects into four arrays by one attribute
I have an array of API objects, below is an example of one object:
...
1
vote
2
answers
165
views
Checking if an element exists in an array efficiently and return it
I am writing a function for my node/angular app that will prompt the user with a random question that he was not asked before.
To achieve this I wrote this function:
...
3
votes
1
answer
42
views
Adjusting Angular.js model based on browser width
I have an Array of 5 objects, some key values need to be changed based on the browser width. ie: 5 cols, 4 cols, 3 cols or 2.
vs.streams is an Array which is tied to a AngularJS model. When the ...
1
vote
1
answer
66
views
Scroll related inline image resizing
I have been working the some project and I'm struggling to find the answer. Right now I'm coding with Angular and there some code that makes me write twice. There only two arrays now but if I have ...
2
votes
1
answer
2k
views
Matching and pushing array
This code works, but I feel like it's really hacky and could be done a lot better. Can anyone give some advice on how this could be neater?
...
2
votes
2
answers
3k
views
Looping through an Array of objects to find an ID in a sub array
I have an Array of objects, each which contain their own sub Tags Array, and I need to loop through and find a matching id.
...