mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
@@ -202,7 +202,7 @@ One of the most common scenarios that developers encounter is the desire to show
|
||||
Similar to JavaScript's `if` control block, Angular provides a built-in `ngIf` directive to control whether an element will render if the expression returns a truthy value.
|
||||
|
||||
```html
|
||||
<section class="admin-controls" *ngIf="hasAdminPrivliges">
|
||||
<section class="admin-controls" *ngIf="hasAdminPrivileges">
|
||||
The content you are looking for is here.
|
||||
</section>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user