Index
Symbols
- # (pound sign), prefacing template reference variables, Control Validity
- $event variable, Alternative to ngModel—Event and Property Binding, ngModel
- () (parentheses), event binding syntax, Understanding Event Binding, Understanding Event Binding
- * (asterisk), beginning structural directives, Built-In Structural Directives
- @Component decorator, Defining a Component
- @Injectable decorator, Digging into the Example
- @NgModule TypeScript annotation, Main Module—app.module.ts
- [(ngModel)] banana-in-a-box syntax, ngModel
- [] (square brackets), property binding syntax, Understanding Property Binding, Understanding Event Binding
- {{ }} (double curly braces), interpolation syntax, Root Component—AppComponent, Understanding Data Binding
- replacing in components, Others
A
- Access-Control-Allow-Origin: header, API/Server Calls and CORS
- ActivatedRoute, Required Route Params, Navigating in Your Application
- AfterContentChecked interface, Interfaces and Functions
- AfterContentInit interface, Interfaces and Functions
- AfterViewChecked interface, Interfaces and Functions
- AfterViewInit interface, Interfaces and Functions
- ahead-of-time (AOT) compilation, Production Build
- Angular
- Angular services, Angular Services-Exercise
- Angular Universal, Server-Side Rendering and Handling SEO
- animations, controlling for components, Others
- annotations, Main Module—app.module.ts
- API/server calls, API/Server Calls and CORS
- AppComponent (example), Root Component—AppComponent
- applications (Angular)
- AppRoutesModule, Importing the Router Module
- APP_BASE_HREF, setting value, Making the changes, Additions for the server side
- as operator, Advanced Observables
- async utility function, Writing an Angular-Aware Unit Test, Unit Testing Async
- asynchronous operations in services, RxJS and Observables: Moving to Asynchronous Operations-RxJS and Observables: Moving to Asynchronous Operations
- asynchronous vs. synchronous forms, Understanding the Differences
- AsyncPipe, Advanced Observables
- attribute directives, Directives and Components
- attributes, case sensitive, Input
- authenticated-only routes, Authenticated-Only Routes-Authenticated-Only Routes
C
- caching, Caching
- CanActivate interface, Authenticated-Only Routes
- canActivate method, Authenticated-Only Routes
- CanDeactivate guard, Preventing Unload-Preventing Unload
- case-sensitive attributes, Input
- change detection for components, Change Detection-Change Detection
- changeDetection attribute, Others
- ChangeDetectionStrategy.Default, Others, Change Detection
- ChangeDetectionStrategy.OnPush, Others, Change Detection
- child routes, Lazy Loading
- circular dependency, Interceptors
- class member variables, declaring in component creation, Understanding Data Binding
- classes
- cloning HttpRequest, Interceptors
- code examples from this book, Using Code Examples
- cold vs. hot observables, Advanced Observables
- command-line interface (CLI), Angular CLI
- components, Understanding and Using Angular Components-Exercise
- about, Components—A Recap
- and modules, Components and Modules
- Angular service sharing data between, Digging into the Example
- component class, Root Component—AppComponent
- creating, Creating a Component-Using Our New Component
- data binding, Understanding Data Binding-Understanding Data Binding
- defining, Defining a Component-Others
- directives and, Directives and Components
- event binding, Understanding Event Binding-Understanding Event Binding
- input, Input
- input and output, change detection, Change Detection-Change Detection
- lifecycle, Component Lifecycle-Interfaces and Functions
- output, Output
- property binding, Understanding Property Binding-Understanding Property Binding
- testing (see testing)
- testing components with a service dependency, Testing Components with a Service Dependency-Testing Components with a Fake Service
- using interfaces for cleaner code, Using Models for Cleaner Code-Using Models for Cleaner Code
- using our new component, Using Our New Component
- view projection, View Projection-View Projection
- comprehensive framework (Angular), Why Angular
- control state
- control validity
- Cross-Origin Resource Sharing (CORS), API/Server Calls and CORS
- CSS, Starting Your First Angular Project
- alternative class and style binding syntax, Alternative Class and Style Binding Syntax
- and Angular applications, Understanding Data Binding
- app-selector, Root Component—AppComponent
- app.component.css file, Navigating Within the Application
- caching CSS files in Angular applications, Caching
- classes for control state, Control State, Control State, Validity, and Error Messages
- classes, applying/removing with NgClass directive, NgClass-NgClass
- scoping with shadow DOM, Style Encapsulation
- selector for components, Selector
- styles/properties, manipulating with NgStyle directive, NgStyle-NgStyle
- styleUrls for templates, Root Component—AppComponent
- custom components, Why Angular
D
- data binding, Why Angular
- data model in reactive forms, Form and Data Model-Form and Data Model
- deactivation of a route, preventing, Preventing Unload-Preloading Data Using Resolve
- declarations, Main Module—app.module.ts
- declarations attribute, Components and Modules
- decorators (TypeScript), Main Module—app.module.ts
- deep-linking, handling in production apps, Handling Deep-Linking
- default path (for routes), Wildcards and Defaults
- dependencies
- dependency injection, Why Angular
- deploying Angular applications, Deploying an Angular Application
- development environment
- development mode, running application in, Running the Application
- directives, Useful Built-In Angular Directives-Exercise, Components—A Recap
- DoCheck interface, Interfaces and Functions
- DOM
E
- encapsulation attribute, Component decorator, Style Encapsulation
- environments, Different Environments
- error handling, HTTP calls, Making HTTP GET/POST Calls
- error messages, adding to reactive forms, Control State, Validity, and Error Messages
- event binding, Understanding Event Binding-Understanding Event Binding
- EventEmitter, Making HTTP GET/POST Calls
- registering as output from a component, Output
- exportAs attribute, Others
- exporting components, Others
- exports attribute, Components and Modules
F
- fakeAsync function vs. async function, Unit Testing Async
- falsy values in JavaScript, NgClass
- fixture instance, Writing an Angular-Aware Unit Test
- fixture.debugElement function, Writing an Angular-Aware Unit Test
- fixture.detectChanges function, Writing an Angular-Aware Unit Test, Testing Component Interactions
- FormArrays, FormArrays-FormArrays
- FormBuilders, using in reactive forms, Form Builders
- FormControls (reactive forms), Form Controls-Form Controls
- FormGroups
- forms, Working with Template-Driven Forms
- FormsModule, importing, Setting Up Forms
- forRoot method, Importing the Router Module
- frameworks
H
- headers (HTTP), sending with request, Options—Headers/Params
- hierarchical dependency injection, Angular and Dependency Injection
- hooks in component lifecycle, Understanding Data Binding
- hot vs. cold observables, Advanced Observables
- HTML
- HTML attributes vs. DOM properties, Understanding Property Binding
- HTML elements, removing vs. hiding, NgIf
- HTTP calls in Angular, Making HTTP Calls in Angular-Exercise
- http service (deprecated), Introducing HttpClient
- httpBackend, Unit Testing HTTP
- httpBackend.expectOne, Unit Testing HTTP
- HttpClient
- httpClient.get, httpClient.post, and httpClient.patch, Making HTTP GET/POST Calls
- HttpClientModule, Unit Testing HTTP
- HttpClientTestingModule, Unit Testing HTTP
- HttpHandler, Interceptors
- HttpHeaders object, Options—Headers/Params
- HttpInterceptor interface, Interceptors
- HttpParams class, Options—Headers/Params
- HttpRequest, Interceptors, Unit Testing HTTP
- HttpResponse, Making HTTP GET/POST Calls
- HttpService, An Introduction to Dependency Injection
- HttpTestingController, Unit Testing HTTP
I
- imports, Main Module—app.module.ts
- imports attribute, Components and Modules
- index.html file, Root HTML—index.html
- inject function, How to Unit Test Services
- injector, getting services from, Testing Components with a Fake Service
- inline styles, Starting Your First Angular Project
- Input decorator, Input
- input element
- intercept method, Interceptors
- interceptors, Interceptors-Interceptors
- interfaces
- interpolation, Understanding Data Binding
- controlling in components, Others
- isPlatformBrowser, Making the changes
N
- navigate method (router), Navigating in Your Application
- ng build --prod command, Production Build
- ng g guard guards/auth command, Authenticated-Only Routes
- ng g service services/message --module=app command, Angular and Dependency Injection
- ng generate component stock/stock-item command, Steps in Creating New Components
- ng generate module app-routes --flat --module=app command, Importing the Router Module
- ng help command, Starting Your First Angular Project
- ng new command, arguments, Starting Your First Angular Project
- ng serve --proxy proxy.config.json command, API/Server Calls and CORS
- ng serve command, Running the Application
- ng test command, Running the Tests
- ng-content element, View Projection
- ng-dirty class, Control State, Control State, Validity, and Error Messages
- ng-invalid class, Control State, Control State, Validity, and Error Messages
- ng-pristine class, Control State, Control State, Validity, and Error Messages
- ng-untouched and ng-touched classes, Control State, Control State, Validity, and Error Messages
- ng-valid class, Control State, Control State, Validity, and Error Messages
- ngAfterContentChecked function, Interfaces and Functions
- ngAfterContentInit function, Interfaces and Functions
- ngAfterViewChecked function, Interfaces and Functions
- ngAfterViewInit function, Interfaces and Functions
- NgClass directive, NgClass-NgClass
- ngDoCheck function, Interfaces and Functions
- ngExpressEngine, Additions for the server side
- NgFor directive, NgFor-NgFor
- ngForm object, Control Validity
- NgForOf class, NgFor
- NgIf directive, NgIf-NgIf
- ngModel directive, Setting Up Forms
- ngModelChange event binding, ngModel
- ngModelGroup directive, Working with FormGroups
- NgModule, attributes affecting components, Components and Modules
- ngOnChanges function, Interfaces and Functions
- ngOnDestroy function, Interfaces and Functions
- ngOnInit function, Understanding Data Binding, Interfaces and Functions, An Isolated Unit Test
- NgStyle directive, NgStyle-NgStyle
- ngSubmit event handler, A Complete Form, Form Groups
- NgSwitch directive, NgSwitch
- NgSwitchCase directive, NgSwitch
- NgSwitchDefault directive, NgSwitch
- ngValue directive, A Complete Form
- Node.js server, Server Setup
- Node.js, installing, Node.js
- NPM, Node.js
O
- Observable.do operator, Interceptors
- Observable.of operator, RxJS and Observables: Moving to Asynchronous Operations
- observables, RxJS and Observables: Moving to Asynchronous Operations-RxJS and Observables: Moving to Asynchronous Operations, Using HttpClientModule
- observe property, options parameter, Options—Observe/Response Type
- OnChanges interface, Interfaces and Functions
- OnDestroy interface, Interfaces and Functions
- one-way data binding, Understanding Data Binding
- OnInit hook, Understanding Data Binding
- OnInit interface, Interfaces and Functions
- onSubmit method, Form Controls, Form and Data Model
- options object, HTTP headers and parameters, Options—Headers/Params-Options—Headers/Params
- options parameter, observe/response type, Options—Observe/Response Type-Options—Observe/Response Type
- Output decorator, Output
P
- packages, naming convention for, Angular CLI
- parameters (HTTP queries), sending, Options—Headers/Params
- paramMap, Required Route Params
- parent/root routes and child routes, Lazy Loading
- PATCH call (HTTP), making, Making HTTP GET/POST Calls
- path (for routes), Importing the Router Module, Wildcards and Defaults
- pathMatch key, Wildcards and Defaults
- Pipe, using in ngFor expression, RxJS and Observables: Moving to Asynchronous Operations
- POST calls (HTTP), making, Making HTTP GET/POST Calls-Making HTTP GET/POST Calls
- Pre-render, Server-Side Rendering and Handling SEO
- prefix value (pathMatch), Wildcards and Defaults
- prefixing components, Starting Your First Angular Project
- preserveWhitespaces attribute, Others
- production mode
- productionizing Angular apps, Productionizing an Angular App-Conclusion
- promises, converting observables to, Advanced Observables
- property binding, Understanding Property Binding-Understanding Property Binding
- Protractor, Testing and Angular
- providers, Testing Components with a Fake Service
- proxy server, setting up, Making HTTP GET/POST Calls, API/Server Calls and CORS
R
- reactive forms, Working with Reactive Forms-Exercise
- reactive programming, Reactive Forms
- ReactiveFormsModule, importing, Form Controls
- RegisterComponent, Navigating in Your Application
- resolve method, Preloading Data Using Resolve
- Resolver, preloading data with, Preloading Data Using Resolve-Preloading Data Using Resolve
- responseType property, options parameter, Options—Observe/Response Type
- root component, Root HTML—index.html
- Router object, Navigating in Your Application
- routerLink directive, Navigating Within the Application, Navigating in Your Application
- routerLinkActive directive, Navigating Within the Application, Navigating in Your Application
- RouterModule, importing and setting up, Importing the Router Module
- RouterOutlet directive, Displaying the Route Contents
- routing, Routing in Angular-Exercise
- routing modules, generating with ng new command, Starting Your First Angular Project
- running applications, Running the Application
S
- scoped packages (NPM), Angular CLI
- scripts section in package.json, Configuration
- search engine optimization (SEO), Server-Side Rendering and Handling SEO-Running Angular Universal
- search-as-you-type application (example), Advanced Observables-Conclusion
- select menu, template-driven form, A Complete Form
- selector attribute, components, Selector
- server-side rendering and handling SEO, Server-Side Rendering and Handling SEO-Running Angular Universal
- server.ts file, Additions for the server side
- servers
- service providers (see providers)
- services, Angular Services
- shadow DOM, Style Encapsulation
- Single-Page Applications (SPAs), Introducing Angular
- snapshot (ActivatedRoute), Optional Route Params
- specifications (.spec.ts files), test.ts, How to Unit Test Services
- stock-item, generating, Steps in Creating New Components
- structural directives, Directives and Components, Built-In Structural Directives-Multiple Sibling Structural Directives
- style binding
- styles
- styles attribute, Styles
- styleUrls attribute, Root Component—AppComponent, Styles
- synchronous vs. asynchronous forms, Understanding the Differences
T
- template attribute, Template
- template reference variables, Control Validity, Control Validity
- template-driven forms, Working with Template-Driven Forms-Exercise
- templates, Starting Your First Angular Project
- templateUrl attribute, Root Component—AppComponent, Template
- TestBed, Writing an Angular-Aware Unit Test
- testing, Why Angular, Testing Angular Components-Exercise
- testing utilities (Angular), Testing and Angular, Writing an Angular-Aware Unit Test
- trackBy option, NgFor directive, NgFor
- truthy and falsy in JavaScript, NgClass
- ts-loader, Dependencies, Configuration
- two-way data binding, Setting Up Forms
- TypeScript