docs: fix typo to remove space (#40601)

PR Close #40601
This commit is contained in:
Teri Glover 2021-01-27 12:05:59 -08:00 committed by Misko Hevery
parent 22f9e454a4
commit eee3354223
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class MyDialog {
} }
``` ```
The most straight forward way to get accurate typings is to cast the return value of the relevant DOM methods to the correct type. For that, you can use the `NgElement` and `WithProperties` types (both exported from `@angular/elements`): The most straightforward way to get accurate typings is to cast the return value of the relevant DOM methods to the correct type. For that, you can use the `NgElement` and `WithProperties` types (both exported from `@angular/elements`):
```ts ```ts
const aDialog = document.createElement('my-dialog') as NgElement & WithProperties<{content: string}>; const aDialog = document.createElement('my-dialog') as NgElement & WithProperties<{content: string}>;