Skip to content

Commit

Permalink
docs: move helpful alert regarding built-in directives to more logica…
Browse files Browse the repository at this point in the history
…l place (#42226)

Moving the helpful alert expressing that built-in directives use public APIs
to be under the heading about built-in directives generally makes the content
in the alert more related to its surroundings than its previous location within
the ng-for section.

Closes #38525

PR Close #42226
  • Loading branch information
josephperrott authored and zarend committed May 21, 2021
1 parent 30c461d commit 4d56c10
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions aio/content/guide/built-in-directives.md
Expand Up @@ -31,6 +31,13 @@ The most common attribute directives are as follows:
* [`NgStyle`](guide/built-in-directives#ngstyle)—adds and removes a set of HTML styles.
* [`NgModel`](guide/built-in-directives#ngModel)—adds two-way data binding to an HTML form element.

<div class="alert is-helpful">

Built-in directives use only public APIs.
They do not have special access to any private APIs that other directives can't access.

</div>

{@a ngClass}
## Adding and removing classes with `NgClass`

Expand Down Expand Up @@ -269,13 +276,6 @@ In the following illustration of the `trackBy` effect, **Reset items** creates n
<img src="generated/images/guide/built-in-directives/ngfor-trackby.gif" alt="Animation of trackBy">
</div>

<div class="alert is-helpful">

Built-in directives use only public APIs.
They do not have special access to any private APIs that other directives can't access.

</div>

{@a ngcontainer}

## Hosting a directive without a DOM element
Expand Down

0 comments on commit 4d56c10

Please sign in to comment.