M
M
Maxim Dunayevsky2015-07-24 09:02:26
Angular
Maxim Dunayevsky, 2015-07-24 09:02:26

Does Angular have a built-in list "class"?

Hello!
In controllers, you often have to work with lists, the data in which is loaded via AJAX. As a result, having a bunch of repetitive code for adding entries to the list, clearing them, sorting, etc. took it all to a separate factory. But maybe for such typical tasks in Angular there is a ready-made solution that comes with the basic package?
Third-party libraries are not interested, because. adherence to the principle "the less dependencies, the better" is very important to me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DigitalSmile, 2015-07-24
@dunmaksim

This is not in Angular, it seems to me that it is not needed there.
I don’t see anything shameful, if you have a lot of collections and manipulations with them, connect some lodash that will solve the necessary tasks.

S
Sergey, 2015-07-24
Protko @Fesor

Angular doesn't provide you with anything to actually organize your data. All by hand. There are tons of options:
- lodash
- restangular
- js-data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question