Skip to content

Commit fe972c1

Browse files
Update README.md
- fixed styles and grammar
1 parent 83a64e9 commit fe972c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -758,19 +758,19 @@ You can download the PDF and Epub version of this repository from the latest run
758758
759759
**[⬆ Back to Top](#table-of-contents)**
760760
761-
21. ### What is the purpose of ngFor directive?
762-
We use Angular ngFor directive in the template to display each item in the list. For example, here we iterate over list of users,
761+
21. ### What is the purpose of `*ngFor` directive?
762+
We use Angular `*ngFor` directive in the template to display each item in the list. For example, here we can iterate over a list of users:
763763
```html
764764
<li *ngFor="let user of users">
765765
{{ user }}
766766
</li>
767767
```
768-
The user variable in the ngFor double-quoted instruction is a **template input variable**
768+
The user variable in the `*ngFor` double-quoted instruction is a **template input variable**.
769769
770770
**[⬆ Back to Top](#table-of-contents)**
771771
772-
22. ### What is the purpose of ngIf directive?
773-
Sometimes an app needs to display a view or a portion of a view only under specific circumstances. The Angular ngIf directive inserts or removes an element based on a truthy/falsy condition. Let's take an example to display a message if the user age is more than 18,
772+
22. ### What is the purpose of `*ngIf` directive?
773+
Sometimes an app needs to display a view or a portion of a view only under specific circumstances. The Angular `*ngIf` directive inserts or removes an element based on a truthy/falsy condition. Let's take an example to display a message if the user age is more than 18:
774774
```html
775775
<p *ngIf="user.age > 18">You are not eligible for student pass!</p>
776776
```

0 commit comments

Comments
 (0)