mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 04:26:01 +08:00
docs: fix character code in expression example (#22564)
* docs: fix character code in expression example Add '\' prefix so character code is rendered literally, not as the character it represents. * docs: format readme.md Run `ng-dev format files` on readme.md.
This commit is contained in:
parent
23dac94c78
commit
68490f1553
@ -124,7 +124,7 @@ The system operates on placeholders defined inside files or their paths as loade
|
|||||||
| Placeholder | Description |
|
| Placeholder | Description |
|
||||||
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `<%= expression %>` | Replaced with the result of the call of the given expression. This only supports direct expressions, no structural (for/if/...) JavaScript. |
|
| `<%= expression %>` | Replaced with the result of the call of the given expression. This only supports direct expressions, no structural (for/if/...) JavaScript. |
|
||||||
| `<%- expression %>` | Same as above, but the value of the result will be escaped for HTML when inserted (i.e. replacing '<' with '<') |
|
| `<%- expression %>` | Same as above, but the value of the result will be escaped for HTML when inserted (i.e. replacing '<' with '\<') |
|
||||||
| `<% inline code %>` | Inserts the given code into the template structure, allowing to insert structural JavaScript. |
|
| `<% inline code %>` | Inserts the given code into the template structure, allowing to insert structural JavaScript. |
|
||||||
| `<%# text %>` | A comment, which gets entirely dropped. |
|
| `<%# text %>` | A comment, which gets entirely dropped. |
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user