X Tutup
Skip to content

Commit d013fc7

Browse files
committed
docs(cleanup): fix bad h3 markup and normalize headings
Closes angular#5341
1 parent dd1e212 commit d013fc7

File tree

15 files changed

+29
-29
lines changed

15 files changed

+29
-29
lines changed

modules/angular2/src/common/directives/ng_if.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {isBlank} from 'angular2/src/facade/lang';
1818
* </div>
1919
* ```
2020
*
21-
*##Syntax
21+
* ### Syntax
2222
*
2323
* - `<div *ng-if="condition">...</div>`
2424
* - `<div template="ng-if condition">...</div>`

modules/angular2/src/common/directives/ng_style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {isPresent, isBlank, print} from 'angular2/src/facade/lang';
1515
* corresponding element styles are updated based on changes to this object. Style names to update
1616
* are taken from the object's keys, and values - from the corresponding object's values.
1717
*
18-
*##Syntax
18+
* ### Syntax
1919
*
2020
* - `<div [ng-style]="{'font-style': style}"></div>`
2121
* - `<div [ng-style]="styleExp"></div>` - here the `styleExp` must evaluate to an object

modules/angular2/src/common/forms/directives/ng_control_group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const controlGroupProvider =
1818
*
1919
* This directive can only be used as a child of {@link NgForm} or {@link NgFormModel}.
2020
*
21-
* # Example ([live demo](http://plnkr.co/edit/7EJ11uGeaggViYM6T5nq?p=preview))
21+
* ### Example ([live demo](http://plnkr.co/edit/7EJ11uGeaggViYM6T5nq?p=preview))
2222
*
2323
* ```typescript
2424
* @Component({

modules/angular2/src/common/forms/directives/ng_form.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ const formDirectiveProvider =
2323
* If `NgForm` is bound in a component, `<form>` elements in that component will be
2424
* upgraded to use the Angular form system.
2525
*
26-
*##Typical Use
26+
* ### Typical Use
2727
*
2828
* Include `FORM_DIRECTIVES` in the `directives` section of a {@link View} annotation
2929
* to use `NgForm` and its associated controls.
3030
*
31-
*##Structure
31+
* ### Structure
3232
*
3333
* An Angular form is a collection of `Control`s in some hierarchy.
3434
* `Control`s can be at the top level or can be organized in `ControlGroup`s
3535
* or `ControlArray`s. This hierarchy is reflected in the form's `value`, a
3636
* JSON object that mirrors the form structure.
3737
*
38-
*##Submission
38+
* ### Submission
3939
*
4040
* The `ng-submit` event signals when the user triggers a form submission.
4141
*

modules/angular2/src/common/forms/directives/ng_form_control.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const formControlBinding =
4949
* }
5050
* ```
5151
*
52-
*##ng-model
52+
* ###ng-model
5353
*
5454
* We can also use `ng-model` to bind a domain model to the form.
5555
*

modules/angular2/src/common/forms/directives/ng_model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const formControlBinding =
2222
/**
2323
* Binds a domain model to a form control.
2424
*
25-
*##Usage
25+
* ### Usage
2626
*
2727
* `ng-model` binds an existing domain model to a form control. For a
2828
* two-way binding, use `[(ng-model)]` to ensure the model updates in

modules/angular2/src/common/forms/directives/validators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const REQUIRED_VALIDATOR =
3333
* A Directive that adds the `required` validator to any controls marked with the
3434
* `required` attribute, via the {@link NG_VALIDATORS} binding.
3535
*
36-
* # Example
36+
* ### Example
3737
*
3838
* ```
3939
* <input ng-control="fullName" required>
@@ -76,4 +76,4 @@ export class MaxLengthValidator implements Validator {
7676
}
7777

7878
validate(c: Control): {[key: string]: any} { return this._validator(c); }
79-
}
79+
}

modules/angular2/src/common/forms/model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export abstract class AbstractControl {
245245
* `Control` is one of the three fundamental building blocks used to define forms in Angular, along
246246
* with {@link ControlGroup} and {@link ControlArray}.
247247
*
248-
* ##Usage
248+
* ## Usage
249249
*
250250
* By default, a `Control` is created for every `<input>` or other form component.
251251
* With {@link NgFormControl} or {@link NgFormModel} an existing {@link Control} can be
@@ -421,7 +421,7 @@ export class ControlGroup extends AbstractControl {
421421
* along with {@link Control} and {@link ControlGroup}. {@link ControlGroup} can also contain
422422
* other controls, but is of fixed length.
423423
*
424-
* ##Adding or removing controls
424+
* ## Adding or removing controls
425425
*
426426
* To change the controls in the array, use the `push`, `insert`, or `removeAt` methods
427427
* in `ControlArray` itself. These methods ensure the controls are properly tracked in the

modules/angular2/src/common/forms/validators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const NG_ASYNC_VALIDATORS: OpaqueToken = CONST_EXPR(new OpaqueToken("NgAs
2929
* controls and returns a {@link StringMap} of errors. A null map means that
3030
* validation has passed.
3131
*
32-
* # Example
32+
* ### Example
3333
*
3434
* ```typescript
3535
* var loginControl = new Control("", Validators.required)

modules/angular2/src/common/pipes/number_pipe.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class NumberPipe {
6666
* Formats a number as local text. i.e. group sizing and separator and other locale-specific
6767
* configurations are based on the active locale.
6868
*
69-
*##Usage
69+
* ### Usage
7070
*
7171
* expression | number[:digitInfo]
7272
*
@@ -101,7 +101,7 @@ export class DecimalPipe extends NumberPipe implements PipeTransform {
101101
*
102102
* Formats a number as local percent.
103103
*
104-
*##Usage
104+
* ### Usage
105105
*
106106
* expression | percent[:digitInfo]
107107
*
@@ -127,7 +127,7 @@ export class PercentPipe extends NumberPipe implements PipeTransform {
127127
*
128128
* Formats a number as local currency.
129129
*
130-
*##Usage
130+
* ### Usage
131131
*
132132
* expression | currency[:currencyCode[:symbolDisplay[:digitInfo]]]
133133
*

0 commit comments

Comments
 (0)
X Tutup