Book description
Design state-of-the-art applications with customized Angular services
About This Book
- Leverage the latest Angular and ES2016 features to create services
- Integrate third-party libraries effectively and extend your app's functionalities
- Implement a real-world case study from scratch and level up your Angular skills
Who This Book Is For
If you are a JavaScript developer who is moving on to Angular and have some experience in developing applications, then this book is for you. You need not have any knowledge of on Angular or its services.
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
In Detail
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.
Style and approach
This step-by-step tutorial starts by showing how you can create your first Angular services, then customizing it to suit your needs, and finally implementing some real-world case studies on your own to make you confident designing your own application using effective services from scratch.
Publisher resources
Table of contents
-
Angular Services
- Angular Services
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
-
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
-
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
-
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
- 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
- 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
-
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
- Creating new children to render the reports
- Creating the report-corpus component
- Creating the report-cluster component
- Updating the report component
- Implementing the report service for the corpus - part one
- Implementing the report service for the Corpus - part two
- Implementing The Report Service For the Clusters
- Updating the parent
- Printing the report
- Summary
- 8. The Accuracy Manager Service - Putting It All Together
Product information
- Title: Angular Services
- Author(s):
- Release date: February 2017
- Publisher(s): Packt Publishing
- ISBN: 9781785882616
You might also like
book
Tidy First?
Messy code is a nuisance. "Tidying" code, to make it more readable, requires breaking it up …
book
Java Coding Problems
Develop your coding skills by exploring Java concepts and techniques such as Strings, Objects and Types, …
book
Deciphering Data Architectures
Data fabric, data lakehouse, and data mesh have recently appeared as viable alternatives to the modern …
video
Full Stack Web Development Mastery Course - Novice to Expert
Full stack development refers to the development of both frontend (client-side) and backend (server-side) portions of …