mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore: fix typos in coding standards (#4043)
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ All public APIs must have user-facing comments. These are extracted and shown in
|
||||
on [material.angular.io](https://material.angular.io).
|
||||
|
||||
Private and internal APIs should have JsDoc when they are not obvious. Ultimately it is the purview
|
||||
of the code reviwer as to what is "obvious", but the rule of thumb is that *most* classes,
|
||||
of the code reviewer as to what is "obvious", but the rule of thumb is that *most* classes,
|
||||
properties, and methods should have a JsDoc description.
|
||||
|
||||
Properties should have a concise description of what the property means:
|
||||
|
||||
@@ -44,7 +44,7 @@ element in an `<md-list-item>`.
|
||||
|
||||
### Multi-line lists
|
||||
For lists that require multiple lines per item, annotate each line with an `md-line` attribute.
|
||||
Whichever heading tag is appropriate for your DOM hierarchy should be used (not necesarily `<h3>`
|
||||
Whichever heading tag is appropriate for your DOM hierarchy should be used (not necessarily `<h3>`
|
||||
as shown in the example).
|
||||
|
||||
```html
|
||||
|
||||
@@ -16,7 +16,7 @@ let snackBarRef = snackbar.openFromComponent(MessageArchivedComponent);
|
||||
```
|
||||
|
||||
In either case, an `MdSnackBarRef` is returned. This can be used to dismiss the snack-bar or to
|
||||
recieve notification of when the snack-bar is dismissed. For simple messages with an action, the
|
||||
receive notification of when the snack-bar is dismissed. For simple messages with an action, the
|
||||
`MdSnackBarRef` exposes an observable for when the action is triggered.
|
||||
|
||||
```ts
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
### Multiple rows
|
||||
Toolbars can have multiple rows using `<md-toolbar-row>` elements. Any content outside of an
|
||||
`<md-toolbar-row>` element are automatically placed inside of one at the begining of the toolbar.
|
||||
`<md-toolbar-row>` element are automatically placed inside of one at the beginning of the toolbar.
|
||||
Each toolbar row is a `display: flex` container.
|
||||
|
||||
```html
|
||||
|
||||
Reference in New Issue
Block a user