diff --git a/modules/@angular/docs/cheatsheet/template-syntax.md b/modules/@angular/docs/cheatsheet/template-syntax.md index 4539e10789..7f70879e36 100644 --- a/modules/@angular/docs/cheatsheet/template-syntax.md +++ b/modules/@angular/docs/cheatsheet/template-syntax.md @@ -78,3 +78,17 @@ syntax: `

Employer: {{employer?.companyName}}

`|`{{employer?.companyName}}` description: The safe navigation operator (`?`) means that the `employer` field is optional and if `undefined`, the rest of the expression should be ignored. + +@cheatsheetItem +syntax: +``|`svg:` +description: +SVG snippet templates need an `svg:` prefix on their root element to disambiguate the SVG element from an HTML component. + +@cheatsheetItem +syntax: +` + +`|`svg` +description: +`` root elements are detected as SVG element automatically without the prefix