You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adev/src/content/tools/cli/aot-compiler.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -472,7 +472,7 @@ Use the non-null type assertion operator to suppress the `Object is possibly 'un
472
472
In the following example, the `person` and `address` properties are always set together, implying that `address` is always non-null if `person` is non-null.
473
473
There is no convenient way to describe this constraint to TypeScript and the template compiler, but the error is suppressed in the example by using `address!.street`.
474
474
475
-
```ts
475
+
```angular-ts
476
476
477
477
@Component({
478
478
selector: 'my-component',
@@ -494,7 +494,7 @@ The non-null assertion operator should be used sparingly as refactoring of the c
494
494
495
495
In this example it is recommended to include the checking of `address` in the `*ngIf` as shown below:
Copy file name to clipboardExpand all lines: adev/src/content/tools/cli/schematics-for-libraries.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ When you add a schematic to the collection, you have to point to it in the colle
107
107
108
108
1. Edit the `schematics/collection.json` file to point to the new schematic subfolder, and include a pointer to a schema file that specifies inputs for the new schematic.
0 commit comments