docs: correct sentence in AoT compiler guide (#33020)

PR Close #33020
This commit is contained in:
Danny Skoog 2019-10-06 23:09:45 +02:00 committed by Alex Rickabaugh
parent 40d87dd801
commit c507dda21a
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ export class AppComponent {
The collector can represent a function call or object creation with `new` as long as the syntax is valid.
The compiler, however, can later refuse to generate a call to a _particular_ function or creation of a _particular_ object.
The compiler can only create instances certain classes, supports only core decorators, and only supports calls to macros (functions or static methods) that return expressions.
The compiler can only create instances of certain classes, supports only core decorators, and only supports calls to macros (functions or static methods) that return expressions.
* New instances
The compiler only allows metadata that create instances of the class `InjectionToken` from `@angular/core`.