Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
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
Toc

Table of Contents (9) Chapters Close

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

Chapter 5.  The Notifier Service - Creating Cron Jobs in Angular

This chapter is about utilizing previous services in an automated fashion. The goal that we are going to achieve is implementing a notifier service, which collects and rates news entries and notifies us if their ranks passed a predefined threshold. We can choose to be notified in two ways:

  • We can be notified via the application itself. That means the moment we open the application. There should be a badge component where it reflects the number of news entries that have passed the rank threshold and when we click on the badge, it should open the page showing those news items.
  • Or we can be notified by email. This provides more freedom because we don't need to open the application to find out what is happening and the moment a news item is qualified as a member of notification list, an email should be sent to us - by application - containing that list.

This introduction suggests two new features for our application...

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 $19.99/month. Cancel anytime
Banner background image