Skip to content

Commit

Permalink
docs: mark the entryComponents array as deprecated (#38616)
Browse files Browse the repository at this point in the history
  • Loading branch information
alcfeoh authored and atscott committed Sep 9, 2020
1 parent bb1122d commit 0a55058
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aio/content/guide/entry-components.md
Expand Up @@ -76,6 +76,12 @@ All router components must be entry components. Because this would require you t

## The `entryComponents` array

<div class="alert is-helpful">

Since 9.0.0 with Ivy, the `entryComponents` property is no longer necessary. See [deprecations guide](guide/deprecations#entryComponents).

</div>

Though the `@NgModule` decorator has an `entryComponents` array, most of the time
you won't have to explicitly set any entry components because Angular adds components listed in `@NgModule.bootstrap` and those in route definitions to entry components automatically. Though these two mechanisms account for most entry components, if your app happens to bootstrap or dynamically load a component by type imperatively,
you must add it to `entryComponents` explicitly.
Expand Down

0 comments on commit 0a55058

Please sign in to comment.