Skip to content

Commit 8f4fbd4

Browse files
feloyjelbourn
authored andcommitted
docs(sidenav): add open/close to example (#1542)
1 parent cfe3e98 commit 8f4fbd4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/sidenav/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,20 @@ Here's a simple example of using the sidenav:
6666
```html
6767
<app>
6868
<md-sidenav-layout>
69-
<md-sidenav #start (open)="mybutton.focus()">
69+
<md-sidenav #start (open)="closeStartButton.focus()">
7070
Start Sidenav.
7171
<br>
72-
<button md-button #mybutton (click)="start.close()">Close</button>
72+
<button md-button #closeStartButton (click)="start.close()">Close</button>
7373
</md-sidenav>
7474
<md-sidenav #end align="end">
7575
End Sidenav.
7676
<button md-button (click)="end.close()">Close</button>
7777
</md-sidenav>
7878

7979
My regular content. This will be moved into the proper DOM at runtime.
80+
<button md-button (click)="start.open()">Open start sidenav</button>
81+
<button md-button (click)="end.open()">Open end sidenav</button>
82+
8083
</md-sidenav-layout>
8184
</app>
8285
```

0 commit comments

Comments
 (0)