Angular Services.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2016.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- 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
- Routing configuration
- The navigation bar template
- The navigation component
- Importing and using the navigation component
- The collector wire-frame
- The collector component
- Accessing a component via root
- The rating wire-frame
- The rating component
- The notifier wire-frame
- The notifier component
- Updating the navigation system
- Single Page Application
- Switching to SPA
- The Evidence Tree Builder Wire-frame
- The Evidence component
- The AI Wire-frame
- The AI Component
- 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
- The access control problem.
- 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
- Obtaining the Trending Keywords
- CORS versus JSONP
- The rating service structure
- The rating logic structure
- Implementing the rating logic
- Implementing the rating service
- 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
- Dealing with vendors
- Getting and rating the news periodically
- The Notifier template and business logic
- The Notifier component
- Two-way data binding
- Updating the template
- Updating the database
- The Notifier service
- Checking the rates for collected news
- The helper functions
- Automating tasks with Zappier
- Sending Notification e-mails
- 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
- Parsing HTML pages into JSON content
- The evidence template
- Saving all valuable words
- Counting the unique words
- Understanding the bag of words model
- The flaws in the bag of words model
- Introducing the TF-IDF factor
- Implementing the TF-IDF factor
- Corpus
- how to build the body
- Making the template Corpus aware
- Making the component Corpus aware
- The Corpus functions
- Introducing the Google Custom Search Engine
- Enabling the Custom Search API And creating a new CSE
- Implementing the corpusBuilder() function
- Fetching the links.
- Creating queries and processing search results
- Refactoring the service logic (removing IDF calculations)
- Refactoring the template
- Updating the component and the service
- How to choose a subject for a road test
- How can we live On Mars?
- Testing the IDF calculations
- Getting insights via clustering
- Making the template and the component cluster aware
- Making the service cluster aware
- Data visualization
- The modal component
- Adding child view to the main component
- Creating a network graph for clusters
- Adding the network data to the cluster builder
- Processing the network graph data
- Showing the graph inside the Modal component
- Resolving the timing issue
- Decorating a network graph
- Decorating the edges
- Decorating the nodes
- The color object
- Processing custom events
- Final modification on the nodes array
- Final thoughts on data visualization
- Gathering other types of evidence
- Gathering evidence from social networks
- 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 mechanics of component interaction
- The report generator template
- The configuration parameters
- A closer look at the accordion and tab navigations
- The right place for holding Firebase objects
- Creating new report templates
- Updating the report template
- How parent component deals with the output data from child component
- 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
- Updating the views
- Optimizing the Firebase performance.
- Implementing the report service for the Corpus
- part two
- Updating the Corpus view
- Implementing The Report Service For the Clusters
- Catching the phrases
- Adding the Conditional Blocks
- Updating the parent
- Printing the report
- Summary
- 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
- Implementing the first prevention
- Running the code with the prevention mechanism
- Summary
- Index.