parent
165357bfa3
commit
9105ab9596
|
@ -33,12 +33,11 @@ export const controlGroupProvider: any =
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* @Component({
|
* @Component({
|
||||||
* selector: 'my-app',
|
* selector: 'my-app',
|
||||||
* directives: [FORM_DIRECTIVES],
|
|
||||||
* template: `
|
* template: `
|
||||||
* <div>
|
* <div>
|
||||||
* <h2>Angular Control & ControlGroup Example</h2>
|
* <h2>Angular Control & ControlGroup Example</h2>
|
||||||
* <form #f="ngForm">
|
* <form #f="ngForm">
|
||||||
* <div ngControlGroup="name" #cg-name="form">
|
* <div ngControlGroup="name" #cgName="ngForm">
|
||||||
* <h3>Enter your name:</h3>
|
* <h3>Enter your name:</h3>
|
||||||
* <p>First: <input ngControl="first" required></p>
|
* <p>First: <input ngControl="first" required></p>
|
||||||
* <p>Middle: <input ngControl="middle"></p>
|
* <p>Middle: <input ngControl="middle"></p>
|
||||||
|
|
Loading…
Reference in New Issue