O'Reilly logo

AngularJS Services by Jim Lavin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying data from external services

The application utilizes data from three different sources: mongolab.com, Google Calendar, and Google Tasks.

The core application data, users, recipes, and ingredients are stored in a mongolab.com instance of MongoDB as collections.

The data-access strategy used by the application is to use data-specific services for each different type of data that act as facades for the mongolab service, which is a generic data-access service that interacts directly with the mongolab.com REST interface for each collection.

As the application requests data for a specific model, it publishes an event that is handled by the data-specific service, which in turn invokes the mongolab service that then sends the request to the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required