diff --git a/src/lib/input/README.md b/src/lib/input/README.md index 38a5482869d..81eaa2dbf22 100644 --- a/src/lib/input/README.md +++ b/src/lib/input/README.md @@ -86,7 +86,25 @@ The divider (line under the `` content) color can be changed by using You can label the `` as you would a regular ``. +## Focus +You can put the focus on an input component using the `focus()` method. + +### Example + +```html + +``` + +```ts +export class MyComponent implements OnInit { + @ViewChild('nameInput') nameInput: MdInput; + + ngOnInit() { + this.nameInput.focus(); + } +} +``` ## Full Forms