Skip to content

Commit be64336

Browse files
committed
Fix typos
1 parent 88f8af0 commit be64336

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@
10481048
**[⬆ Back to Top](#table-of-contents)**
10491049
10501050
39. ### How do you perform Error handling?
1051-
If the request fails on the server or fails to reach the server due to network issues, then `HttpClient` will return an error object instead of a successful reponse. In this case, you need to handle in the component by passing `error` object as a second callback to `subscribe()` method.
1051+
If the request fails on the server or fails to reach the server due to network issues, then `HttpClient` will return an error object instead of a successful response. In this case, you need to handle in the component by passing `error` object as a second callback to `subscribe()` method.
10521052
10531053
Let's see how it can be handled in the component with an example,
10541054
```javascript
@@ -1180,7 +1180,7 @@
11801180
```javascript
11811181
myObservable.subscribe({
11821182
next(num) { console.log('Next num: ' + num)},
1183-
error(err) { console.log('Received an errror: ' + err)}
1183+
error(err) { console.log('Received an error: ' + err)}
11841184
});
11851185
```
11861186
@@ -1766,7 +1766,7 @@
17661766
]
17671767
```
17681768
You can fix this by non-destructured values
1769-
```javscript
1769+
```javascript
17701770
import { user } from './user';
17711771
... //metadata
17721772
providers: [
@@ -1803,7 +1803,7 @@
18031803
**[⬆ Back to Top](#table-of-contents)**
18041804
18051805
92. ### How do you specify angular template compiler options?
1806-
The angular template compiler options are specified as members of the **angularCompilerOptions** object in the tsconfig.json file. These options will be specified adjecent to typescript compiler options.
1806+
The angular template compiler options are specified as members of the **angularCompilerOptions** object in the tsconfig.json file. These options will be specified adjacent to typescript compiler options.
18071807
18081808
```javascript
18091809
{
@@ -2377,7 +2377,7 @@
23772377
23782378
134. ### How do you use Bazel with Angular CLI?
23792379
The @angular/bazel package provides a builder that allows Angular CLI to use Bazel as the build tool.
2380-
1. **Use in an existing applciation:** Add @angular/bazel using CLI
2380+
1. **Use in an existing application:** Add @angular/bazel using CLI
23812381
```javascript
23822382
ng add @angular/bazel
23832383
```
@@ -2819,7 +2819,7 @@
28192819
**[⬆ Back to Top](#table-of-contents)**
28202820
28212821
165. ### What is Sanitization? Is angular supports it?
2822-
**Sanitization** is the inspection of an untrusted value, turning it into a value that's safe to insert into the DOM. Yes, Angular suppports sanitization. It sanitizes untrusted values for HTML, styles, and URLs but sanitizing resource URLs isn't possible because they contain arbitrary code.
2822+
**Sanitization** is the inspection of an untrusted value, turning it into a value that's safe to insert into the DOM. Yes, Angular supports sanitization. It sanitizes untrusted values for HTML, styles, and URLs but sanitizing resource URLs isn't possible because they contain arbitrary code.
28232823
28242824
**[⬆ Back to Top](#table-of-contents)**
28252825
@@ -3030,7 +3030,7 @@
30303030
179. ### What are the four phases of template translation?
30313031
The i18n template translation process has four phases:
30323032
3033-
1. **Mark static text messages in your component templates for translation:** You can place i18n on every element tag whose fixed text is to be translated. For example, you need i18n attribue for heading as below,
3033+
1. **Mark static text messages in your component templates for translation:** You can place i18n on every element tag whose fixed text is to be translated. For example, you need i18n attribute for heading as below,
30343034
```javascript
30353035
<h1 i18n>Hello i18n!</h1>
30363036
```
@@ -3495,7 +3495,7 @@
34953495
34963496
**[⬆ Back to Top](#table-of-contents)**
34973497
215. ### How do you manually bootstrap an application?
3498-
You can use `ngDoBootstrap` hook for a manual bootstrapping of the application instead of using bootstrap array in `@NgModule` annotation. This hook is part of `DoBootstap` interface.
3498+
You can use `ngDoBootstrap` hook for a manual bootstrapping of the application instead of using bootstrap array in `@NgModule` annotation. This hook is part of `DoBootstrap` interface.
34993499
```js
35003500
interface DoBootstrap {
35013501
ngDoBootstrap(appRef: ApplicationRef): void
@@ -3534,7 +3534,7 @@
35343534
**[⬆ Back to Top](#table-of-contents)**
35353535
35363536
218. ### Why is not necessary to use entryComponents array every time?
3537-
Most of the time, you don't need to explicity to set entry components in entryComponents array of ngModule decorator. Because angular adds components from both @NgModule.bootstrap and route definitions to entry components automatically.
3537+
Most of the time, you don't need to explicitly to set entry components in entryComponents array of ngModule decorator. Because angular adds components from both @NgModule.bootstrap and route definitions to entry components automatically.
35383538
35393539
**[⬆ Back to Top](#table-of-contents)**
35403540

0 commit comments

Comments
 (0)