docs(): fix coding standards example w/ wrong language

This commit is contained in:
Jeremy Elbourn
2016-01-22 13:24:25 -08:00
parent f6480ce21f
commit fa6341a465
+3 -3
View File
@@ -15,7 +15,7 @@ ES6 or TypeScript.
Comments that explain what some block of code does are nice; they can tell you something in less time than it would take to follow through the code itself.
Comments that explain why some block of code exists at all, or does something the way it does,
are invaluable. The "why" is difficult, or sometimes impossible, to track down without seeking out
are _invaluable_. The "why" is difficult, or sometimes impossible, to track down without seeking out
the original author. When collaborators are in the same room, this hurts productivity.
When collaborators are in different timezones, this can be devastating to productivity.
@@ -40,14 +40,14 @@ if (!$attrs['tabindex']) {
#### Prefer more focused, granular components vs. complex, configurable components.
For example, rather than doing this:
```ts
```html
<md-button>Basic button</md-button>
<md-button class="md-fab">FAB</md-button>
<md-button class="md-icon-button">pony</md-button>
```
do this:
```ts
```html
<md-button>Basic button</md-button>
<md-fab>FAB</md-fab>
<md-icon-button>pony</md-icon-button>