Skip to main content

All Questions

3 votes
2 answers
3k views

Handling errors of nested promises

This is in one of my AngularJS controllers: ...
CodeVirtuoso's user avatar
0 votes
1 answer
205 views

Service per Controller

We have a base module consuming the company API. In each app I've written almost always a service per controller. Because most controllers are specific to a entity (a single user, a single post, list ...
Gui's user avatar
  • 103
1 vote
1 answer
2k views

Use of getters and setters with a car information example

I have very quickly mocked this up as an example model in Angular JS: ...
user2405469's user avatar
2 votes
2 answers
5k views

Creating a new marker on a map

Is this code good practice? What kind of design pattern should I use for this specific situation? The following function creates a new marker on a map. It sets a new image for it, except when the ...
zok's user avatar
  • 213
2 votes
1 answer
718 views

Filling two angular $scope variables with data

I'm unsure about how to simplify this method properly. The method is basically responsible to allocate data. The response object is a collection of objects. Each object contains an attribute called <...
gearsdigital's user avatar