Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Angular Services

You're reading from   Angular Services -

Arrow left icon
Product type Paperback
Published in Feb 2017
Publisher Packt
ISBN-13 9781785882616
Length 294 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Sohail Salehi Sohail Salehi
Author Profile Icon Sohail Salehi
Sohail Salehi
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Angular Services
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Setting Up the Environment FREE CHAPTER 2. Introducing Wire-Frames 3. The Collector Service - Using Controllers to Collect Data 4. The Rating Service - Data Management 5. The Notifier Service - Creating Cron Jobs in Angular 6. The Evidence Tree Builder Service - Implementing the Business Logic 7. The Report Generator Service - Creating Controllers to Set Report Template 8. The Accuracy Manager Service - Putting It All Together

Introducing the anatomy of cure and prevention


The logic behind cure and prevention is very simple and it is all about timing: whatever issue we find AFTER running the application will be considered as a situation that needs a cure. On the other side, the very next time that we use that solution BEFORE the issue arises then we consider it as prevention. So technically what we call a cure here is a note that mentions something is broken and it needs our attention. It simply informs us about it and does not patch it up by itself.

Tip

Please keep in mind that there are situations where we cannot find problems until after code execution. For example, we cannot find out if the query result is valid and is within the acceptable range, without letting the Google CSE (Custom Search Engine) do its job. So what happens at that point onward - technically- is a cure, not prevention.

That means we cannot save the query quota before trying something. However, we can save the Firebase quota and database space...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images