docs(chore): make styles consistent for API doc headings

Closes #4816
This commit is contained in:
Naomi Black
2015-10-19 15:37:32 +01:00
committed by Naomi Black
parent 2c98a0f771
commit be3e7db5db
58 changed files with 131 additions and 131 deletions

View File

@ -38,7 +38,7 @@ export {NgControlStatus} from './directives/ng_control_status';
*
* This is a shorthand for importing them each individually.
*
* ### Example:
* ### Example
*
* ```typescript
* @Component({

View File

@ -13,7 +13,7 @@ const CHECKBOX_VALUE_ACCESSOR = CONST_EXPR(new Provider(
/**
* The accessor for writing a value and listening to changes on a checkbox input element.
*
* # Example
* ### Example
* ```
* <input type="checkbox" [ng-control]="rememberLogin">
* ```

View File

@ -13,7 +13,7 @@ const DEFAULT_VALUE_ACCESSOR = CONST_EXPR(new Provider(
* The default accessor for writing a value and listening to changes that is used by the
* {@link NgModel}, {@link NgFormControl}, and {@link NgControlName} directives.
*
* # Example
* ### Example
* ```
* <input type="text" [(ng-model)]="searchQuery">
* ```

View File

@ -17,7 +17,7 @@ const controlGroupBinding =
*
* This directive can only be used as a child of {@link NgForm} or {@link NgFormModel}.
*
* # Example
* ### Example
*
* In this example, we create the credentials and personal control groups.
* We can work with each group separately: check its validity, get its value, listen to its changes.

View File

@ -21,7 +21,7 @@ const controlNameBinding =
*
* This directive can only be used as a child of {@link NgForm} or {@link NgFormModel}.
* # Example
* ### Example
*
* In this example, we create the login and password controls.
* We can work with each control separately: check its validity, get its value, listen to its

View File

@ -22,19 +22,19 @@ const formDirectiveProvider =
* If `NgForm` is bound in a component, `<form>` elements in that component will be
* upgraded to use the Angular form system.
*
* # Typical Use
*##Typical Use
*
* Include `FORM_DIRECTIVES` in the `directives` section of a {@link View} annotation
* to use `NgForm` and its associated controls.
*
* # Structure
*##Structure
*
* An Angular form is a collection of `Control`s in some hierarchy.
* `Control`s can be at the top level or can be organized in `ControlGroup`s
* or `ControlArray`s. This hierarchy is reflected in the form's `value`, a
* JSON object that mirrors the form structure.
*
* # Submission
*##Submission
*
* The `ng-submit` event signals when the user triggers a form submission.
*

View File

@ -42,7 +42,7 @@ const formControlBinding =
* }
* ```
*
* # ng-model
*##ng-model
*
* We can also use `ng-model` to bind a domain model to the form.
*

View File

@ -16,7 +16,7 @@ const formControlBinding =
/**
* Binds a domain model to a form control.
*
* # Usage
*##Usage
*
* `ng-model` binds an existing domain model to a form control. For a
* two-way binding, use `[(ng-model)]` to ensure the model updates in

View File

@ -13,7 +13,7 @@ const NUMBER_VALUE_ACCESSOR = CONST_EXPR(new Provider(
* The accessor for writing a number value and listening to changes that is used by the
* {@link NgModel}, {@link NgFormControl}, and {@link NgControlName} directives.
*
* # Example
* ### Example
* ```
* <input type="number" [(ng-model)]="age">
* ```

View File

@ -14,7 +14,7 @@ const SELECT_VALUE_ACCESSOR = CONST_EXPR(new Provider(
/**
* Marks `<option>` as dynamic, so Angular can be notified when options change.
*
* #Example:
* ### Example
*
* ```
* <select ng-control="city">

View File

@ -7,7 +7,7 @@ import * as modelModule from './model';
/**
* Creates a form object from a user-specified configuration.
*
* # Example
* ### Example
*
* ```
* import {Component, bootstrap} from 'angular2/angular2';

View File

@ -38,7 +38,7 @@ function _find(control: AbstractControl, path: Array<string | number>| string) {
}
/**
* Omitting from external API doc as this is really an abstract internal concept.
*
*/
export class AbstractControl {
/** @internal */
@ -145,7 +145,7 @@ export class AbstractControl {
* `Control` is one of the three fundamental building blocks used to define forms in Angular, along
* with {@link ControlGroup} and {@link ControlArray}.
*
* # Usage
*##Usage
*
* By default, a `Control` is created for every `<input>` or other form component.
* With {@link NgFormControl} or {@link NgFormModel} an existing {@link Control} can be
@ -287,7 +287,7 @@ export class ControlGroup extends AbstractControl {
* along with {@link Control} and {@link ControlGroup}. {@link ControlGroup} can also contain
* other controls, but is of fixed length.
*
* # Adding or removing controls
*##Adding or removing controls
*
* To change the controls in the array, use the `push`, `insert`, or `removeAt` methods
* in `ControlArray` itself. These methods ensure the controls are properly tracked in the

View File

@ -10,7 +10,7 @@ export const NG_VALIDATORS: OpaqueToken = CONST_EXPR(new OpaqueToken("NgValidato
/**
* Provides a set of validators used by form controls.
*
* # Example
* ### Example
*
* ```
* var loginControl = new Control("", Validators.required)