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

Tying the Google Calendar and task list together

We now have services that can be used to create entries into a user's Google Calendar or task list; however, having that code all over our application adds unnecessary code and bloat to the components that need to interact with the services. It would be better to use a facade pattern to encapsulate the business logic around managing our brewing calendar and task list. This way, the components that want to interact with the user's calendar or task list can do it via this new service in a more refined way.

The brewCalendar service wraps the business logic needed to manage both the brewing calendar and brewing task list. It also handles the logic to create all of the calendar events and tasks for a ...

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