Skip to main content

All Questions

2 votes
1 answer
551 views

Paginated AngularJS posts application

I have made a small application that displays a posts JSON in the form of cards, with the help of AngularJS and Twitter Bootstrap 4. The application has an interface for pagination and there are ...
Razvan Zamfir's user avatar
4 votes
2 answers
78 views

Grab the first 4 items that meet the condition from a data set with an unknown size

I was turned down for a job after a coding take-home test, and some of the feedback I received was: would have preferred to see more functional programming instead of while loops - and the while ...
Neil S's user avatar
  • 141
2 votes
1 answer
4k views

Performance problem with Angular and rendering a grid

I have a big problem with performance with a web application using AngularJS. I currently have a grid that renders an array of objects. It looks something like this. ...
Heathcliff's user avatar
0 votes
1 answer
4k views

Dynamically set angular directive template

I have recently upgraded to AngularJS 1.5 and as the title says, I want to use different templates depending on a value in the ...
Backer's user avatar
  • 103
1 vote
1 answer
109 views

Angular console like window - first directive

I've asked question on SO how to rewrite jQuery code to Angular. Because I got no answers I've tried to create something by my own. This is my version of code: ...
Misiu's user avatar
  • 349
6 votes
2 answers
125 views

Optimize Game of Life

I'm a beginner at coding and the past days I tried to write the famous "Conway's Game of Life" in Angular.js. Right now I'm done with the code and the game works. But if the size of the ...
user avatar
5 votes
1 answer
991 views

Event Delegation Directive

In use cases where web applications utilize ng-repeat heavily and also rely on event triggers for each item in the collection, such as ...
Brett's user avatar
  • 151
11 votes
1 answer
5k views

A directive allowing to make a whole DOM subtree readonly

What do you think about this directive? For each input, it traverses the DOM towards the root and if it finds an element with the class ...
maaartinus's user avatar
  • 13.5k
7 votes
1 answer
1k views

AngularJs and Google Bot experiment

I have learned the question of solving Angular app optimization for search engines, and was frustrated that the most recommended option is prerendering HTML. After some time spent, I suggested to ...
Saike's user avatar
  • 833
1 vote
1 answer
275 views

Is it reasonable to expect this AngularJS function to perform well?

I have this function which is associated with a timer that I'm creating in AngualarJS. Should I be concerned about the function being able to execute quickly enough for the timer to be accurate. <...
Jbird's user avatar
  • 153