\newline Logo
Left arrow icon.
Go to Previous Chapter
Go to Previous Chapter
SECTION 8Dependency Injection
Course Thumbnail of ng-book.ng-book
  • CHAPTER 1
    Introduction to Redux with TypeScript
    • SECTION 1.1Redux
    • SECTION 1.2Core Redux Ideas
    • SECTION 1.3Storing Our State
    • SECTION 1.4A Messaging App
    • SECTION 1.5Using Redux in Angular
    • SECTION 1.6Planning Our App
    • SECTION 1.7Setting Up Redux
    • SECTION 1.8Providing the Store
    • SECTION 1.9Bootstrapping the App
    • SECTION 1.10The AppComponent
    • SECTION 1.11What's Next
    • SECTION 1.12References
  • CHAPTER 2
    Intermediate Redux in Angular
    • SECTION 2.1Context For This Chapter
    • SECTION 2.2Chat App Overview
    • SECTION 2.3Implementing the Models
    • SECTION 2.4App State
    • SECTION 2.5Building the Reducers (and Action Creators)
    • SECTION 2.6Building the Angular Chat App
    • SECTION 2.7Building the ChatNavBarComponent
    • SECTION 2.8Building the ChatThreadsComponent
    • SECTION 2.9The Single ChatThreadComponent
    • SECTION 2.10Building the ChatWindowComponent
    • SECTION 2.11The ChatMessageComponent
    • SECTION 2.12Summary
  • CHAPTER 3
    TypeScript
    • SECTION 3.1Angular is built in TypeScript
    • SECTION 3.2What do we get with TypeScript?
    • SECTION 3.3Types
    • SECTION 3.4Built-in types
    • SECTION 3.5Classes
    • SECTION 3.6Utilities
    • SECTION 3.7Wrapping up
  • CHAPTER 4
    Routing
    • SECTION 4.1Why Do We Need Routing?
    • SECTION 4.2How client-side routing works
    • SECTION 4.3Writing our first routes
    • SECTION 4.4Components of Angular routing
    • SECTION 4.5Putting it all together
    • SECTION 4.6Routing Strategies
    • SECTION 4.7Running the application
    • SECTION 4.8Route Parameters
    • SECTION 4.9Music Search App
    • SECTION 4.10Router Hooks
    • SECTION 4.11Nested Routes
    • SECTION 4.12Summary
  • CHAPTER 5
    Testing
    • SECTION 5.1Test driven?
    • SECTION 5.2End-to-end vs. Unit Testing
    • SECTION 5.3Testing Tools
    • SECTION 5.4Writing Unit Tests
    • SECTION 5.5Angular Unit testing framework
    • SECTION 5.6Setting Up Testing
    • SECTION 5.7Testing Services and HTTP
    • SECTION 5.8Testing Routing to Components
    • SECTION 5.9Back to Testing Code
    • SECTION 5.10Testing Forms
    • SECTION 5.11Testing HTTP requests
    • SECTION 5.12Conclusion
  • CHAPTER 6
    Advanced Components
    • SECTION 6.1Styling
    • SECTION 6.2Creating a Popup - Referencing and Modifying Host Elements
    • SECTION 6.3Creating a Message Pane with Content Projection
    • SECTION 6.4Querying Neighbor Directives - Writing Tabs
    • SECTION 6.5Lifecycle Hooks
    • SECTION 6.6Advanced Templates
    • SECTION 6.7Change Detection
    • SECTION 6.8Summary
  • CHAPTER 7
    How Angular Works
    • SECTION 7.1Application
    • SECTION 7.2How to Use This Chapter
    • SECTION 7.3Product Model
    • SECTION 7.4Components
    • SECTION 7.5Component Decorator
    • SECTION 7.6The ProductsListComponent
    • SECTION 7.7The ProductRowComponent Component
    • SECTION 7.8The ProductImageComponent Component
    • SECTION 7.9The PriceDisplayComponent Component
    • SECTION 7.10The ProductDepartmentComponent
    • SECTION 7.11NgModule and Booting the App
    • SECTION 7.12The Completed Project
    • SECTION 7.13Deploying the App
    • SECTION 7.14A Word on Data Architecture
  • CHAPTER 8
    Dependency Injection
    • SECTION 8.1Injections Example: PriceService
    • SECTION 8.2Dependency Injection Parts
    • SECTION 8.3Playing with an Injector
    • SECTION 8.4Providing Dependencies with NgModule
    • SECTION 8.5Providers
    • SECTION 8.6Dependency Injection in Apps
    • SECTION 8.7More Resources
  • CHAPTER 9
    Converting an AngularJS 1.x App to Angular
    • SECTION 9.1Peripheral Concepts
    • SECTION 9.2What We're Building
    • SECTION 9.3Mapping AngularJS 1 to Angular
    • SECTION 9.4Requirements for Interoperability
    • SECTION 9.5The AngularJS 1 App
    • SECTION 9.6Building A Hybrid
    • SECTION 9.7Summary
    • SECTION 9.8References
  • CHAPTER 10
    Data Architecture with Observables - Part 1: Services
    • SECTION 10.1Observables and RxJS
    • SECTION 10.2Chat App Overview
    • SECTION 10.3Implementing the Models
    • SECTION 10.4Implementing UsersService
    • SECTION 10.5The MessagesService
    • SECTION 10.6The ThreadsService
    • SECTION 10.7Data Model Summary
  • CHAPTER 11
    Forms in Angular
    • SECTION 11.1Forms are Crucial, Forms are Complex
    • SECTION 11.2FormControls and FormGroups
    • SECTION 11.3Our First Form
    • SECTION 11.4Using FormBuilder
    • SECTION 11.5Reactive Forms with FormBuilder
    • SECTION 11.6Adding Validations
    • SECTION 11.7Watching For Changes
    • SECTION 11.8ngModel
    • SECTION 11.9Wrapping Up
  • CHAPTER 12
    Data Architecture with Observables - Part 2: View Components
    • SECTION 12.1Building Our Views: The AppComponent Top-Level Component
    • SECTION 12.2The ChatThreadsComponent
    • SECTION 12.3The Single ChatThreadComponent
    • SECTION 12.4The ChatWindowComponent
    • SECTION 12.5The ChatMessageComponent
    • SECTION 12.6The ChatNavBarComponent
    • SECTION 12.7Summary
  • CHAPTER 13
    Built-in Directives
    • SECTION 13.1Introduction
    • SECTION 13.2NgIf
    • SECTION 13.3NgSwitch
    • SECTION 13.4NgStyle
    • SECTION 13.5NgClass
    • SECTION 13.6NgFor
    • SECTION 13.7NgNonBindable
    • SECTION 13.8Conclusion
  • CHAPTER 14
    Data Architecture in Angular
    • SECTION 14.1An Overview of Data Architecture
  • CHAPTER 15
    HTTP
    • SECTION 15.1Introduction
    • SECTION 15.2Using @angular/common/http
    • SECTION 15.3A Basic Request
    • SECTION 15.4Writing a YouTubeSearchComponent
    • SECTION 15.5@angular/common/http API
  • CHAPTER 16
    Writing Your First Angular Web Application
    • SECTION 16.1Simple Reddit Clone
    • SECTION 16.2Getting started
    • SECTION 16.3Special instruction for Windows users
    • SECTION 16.4Running the application
    • SECTION 16.5Adding Data to the Component
    • SECTION 16.6Working With Arrays
    • SECTION 16.7Using the User Item Component
    • SECTION 16.8Bootstrapping Crash Course
    • SECTION 16.9Expanding our Application
    • SECTION 16.10Rendering Multiple Rows
    • SECTION 16.11Adding New Articles
    • SECTION 16.12Finishing Touches
    • SECTION 16.13Deployment
    • SECTION 16.14Full Code Listing
    • SECTION 16.15Wrapping Up
    • SECTION 16.16Getting Help
Right arrow icon.
Go to Next Chapter
Go to Next Chapter
SECTION 10Data Architecture with Observables - Part 1: Services
  • Go Pro
  • Log In

Converting an AngularJS 1.x App to Angular

Table of Contents
  • Section 9.1Peripheral Concepts
  • Section 9.2What We're Building
  • Section 9.3Mapping AngularJS 1 to Angular
  • Section 9.4Requirements for Interoperability
  • Section 9.5The AngularJS 1 App
  • Books
  • ng-book
  • Converting an AngularJS 1.x App to Angular
  • Go To Previous Lesson
    Dependency Injection
    Dependency Injection
  • Go To Next Lesson
    Data Architecture with Observables - Part 1: Services
    Data Architecture with Observables - Part 1: Services