Angular Services

Design state-of-the-art applications with customized Angular services
Preview in Mapt

Angular Services

Sohail Salehi

Design state-of-the-art applications with customized Angular services
Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Angular Services Book Cover
Angular Services
$ 31.99
$ 22.40
Full Stack Angular for Java Developers Book Cover
Full Stack Angular for Java Developers
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781785882616
Paperback294 pages

Book Description

A primary concern with modern day applications is that they need to be dynamic, and for that, data access from the server side, data authentication, and security are very important. Angular leverages its services to create such state-of-the-art dynamic applications.

This book will help you create and design customized services, integrate them into your applications, import third-party plugins, and make your apps perform better and faster. This book starts with a basic rundown on how you can create your own Angular development environment compatible with v2 and v4. You will then use Bootstrap and Angular UI components to create pages. You will also understand how to use controllers to collect data and populate them into NG UIs.

Later, you will then create a rating service to evaluate entries and assign a score to them. Next, you will create "cron jobs" in NG. We will then create a crawler service to find all relevant resources regarding a selected headline and generate reports on it. Finally, you will create a service to manage accuracy and provide feedback about troubled areas in the app created.

This book is up to date for the 2.4 release and is compatible with the 4.0 release as well, and it does not have any code based on the beta or release candidates.

Table of Contents

Chapter 1: Setting Up the Environment
Introducing Angular
There is no backward compatibility
Previous knowledge of AngularJS 1.x is not necessary
The relationship between ECMAScript, AtScript, and TypeScript
Setting up tools and getting started!
Setting up the seed project
Setting up an Angular project in WebStorm
Frontend developers versus backend developers
Introducing The Sherlock Project
Summary
Chapter 2: Introducing Wire-Frames
What is a module?
Components - the reusable objects
The root component
Updating the Bootstrap file
Running the web server
Bootstrapping versus root component
The big picture
The navigation system
The Angular router module
The collector wire-frame
Accessing a component via root
The rating wire-frame
The notifier wire-frame
Updating the navigation system
Switching to SPA
The Evidence Tree Builder Wire-frame
The AI Wire-frame
The Report Generator Wire-frame
The Auto-pilot Wire-frame
The Accuracy Manager Wire-frame
Summary
Chapter 3: The Collector Service - Using Controllers to Collect Data
What is a service and why do we need them?
Updating the collector component
The collector service
The Dependency Injection
Property binding
Class binding
Style binding
Event binding
Getting the real news
Angular and observable objects
Updating the collector component
Saving objects in a database
Setting up The Sherlock Project on Firebase
Saving objects to the database
Working with data via lists
Summary
Chapter 4: The Rating Service - Data Management
Setting the ranking parameters
The Google Trends service
The rating service structure
The rating logic structure
The rating component
The rating template
Creating a custom pipe
Summary
Chapter 5: The Notifier Service - Creating Cron Jobs in Angular
Cron job versus Interval/Timeout
Introducing node-cron
Getting and rating the news periodically
The Notifier component
The Notifier service
Automating tasks with Zappier
In App notifications
News maintenance
Summary
Chapter 6: The Evidence Tree Builder Service - Implementing the Business Logic
Clustering and similarity - retrieving documents of interest
The evidence service
The evidence component
The evidence template
Understanding the bag of words model
Corpus - how to build the body
The Corpus functions
Introducing the Google Custom Search Engine
Updating the component and the service
How to choose a subject for a road test
How can we live On Mars?
Getting insights via clustering
Data visualization
Processing the network graph data
Decorating a network graph
Processing custom events
Summary
Chapter 7: The Report Generator Service - Creating Controllers to Set Report Template
Saving network graph data to the database
The report generator component
The report generator template
Creating new report templates
Updating the report template
Deleting The Report Template
Rendering The Reports
Printing the report
Summary
Chapter 8: The Accuracy Manager Service - Putting It All Together
Introducing the anatomy of cure and prevention
Why are test frameworks not practical here?
The accuracy manager component
The accuracy manager view
The accuracy service
Summary

What You Will Learn

  • Explore various features and topics involved in modules, services, and dependency injection
  • Sketch and create wire-frames for your project
  • Use controllers to collect data and populate them into NG UIs
  • Create a controller and the required directives to build a tree data structure
  • Implement a logic to decide the relevancy of any given evidence
  • Create a partially-AI service
  • Build controllers to set the template for the report
  • Collect, investigate, perform decision making, and generate reports in one the big automated process

Authors

Table of Contents

Chapter 1: Setting Up the Environment
Introducing Angular
There is no backward compatibility
Previous knowledge of AngularJS 1.x is not necessary
The relationship between ECMAScript, AtScript, and TypeScript
Setting up tools and getting started!
Setting up the seed project
Setting up an Angular project in WebStorm
Frontend developers versus backend developers
Introducing The Sherlock Project
Summary
Chapter 2: Introducing Wire-Frames
What is a module?
Components - the reusable objects
The root component
Updating the Bootstrap file
Running the web server
Bootstrapping versus root component
The big picture
The navigation system
The Angular router module
The collector wire-frame
Accessing a component via root
The rating wire-frame
The notifier wire-frame
Updating the navigation system
Switching to SPA
The Evidence Tree Builder Wire-frame
The AI Wire-frame
The Report Generator Wire-frame
The Auto-pilot Wire-frame
The Accuracy Manager Wire-frame
Summary
Chapter 3: The Collector Service - Using Controllers to Collect Data
What is a service and why do we need them?
Updating the collector component
The collector service
The Dependency Injection
Property binding
Class binding
Style binding
Event binding
Getting the real news
Angular and observable objects
Updating the collector component
Saving objects in a database
Setting up The Sherlock Project on Firebase
Saving objects to the database
Working with data via lists
Summary
Chapter 4: The Rating Service - Data Management
Setting the ranking parameters
The Google Trends service
The rating service structure
The rating logic structure
The rating component
The rating template
Creating a custom pipe
Summary
Chapter 5: The Notifier Service - Creating Cron Jobs in Angular
Cron job versus Interval/Timeout
Introducing node-cron
Getting and rating the news periodically
The Notifier component
The Notifier service
Automating tasks with Zappier
In App notifications
News maintenance
Summary
Chapter 6: The Evidence Tree Builder Service - Implementing the Business Logic
Clustering and similarity - retrieving documents of interest
The evidence service
The evidence component
The evidence template
Understanding the bag of words model
Corpus - how to build the body
The Corpus functions
Introducing the Google Custom Search Engine
Updating the component and the service
How to choose a subject for a road test
How can we live On Mars?
Getting insights via clustering
Data visualization
Processing the network graph data
Decorating a network graph
Processing custom events
Summary
Chapter 7: The Report Generator Service - Creating Controllers to Set Report Template
Saving network graph data to the database
The report generator component
The report generator template
Creating new report templates
Updating the report template
Deleting The Report Template
Rendering The Reports
Printing the report
Summary
Chapter 8: The Accuracy Manager Service - Putting It All Together
Introducing the anatomy of cure and prevention
Why are test frameworks not practical here?
The accuracy manager component
The accuracy manager view
The accuracy service
Summary

Book Details

ISBN 139781785882616
Paperback294 pages
Read More

Read More Reviews

Recommended for You

Mastering Angular 2 Components Book Cover
Mastering Angular 2 Components
$ 35.99
$ 25.20
Getting Started with Angular - Second Edition Book Cover
Getting Started with Angular - Second Edition
$ 27.99
$ 19.60
Angular Test-Driven Development - Second Edition Book Cover
Angular Test-Driven Development - Second Edition
$ 31.99
$ 22.40
Angular 2 By Example Book Cover
Angular 2 By Example
$ 35.99
$ 25.20
Essential Angular 4 Book Cover
Essential Angular 4
$ 23.99
$ 16.80
ASP.NET Core and Angular 2 Book Cover
ASP.NET Core and Angular 2
$ 35.99
$ 25.20