Skip to content

Commit 4d35dd4

Browse files
SekibOmazicmhevery
authored andcommitted
docs(02_directives.md): Change the description of bind property
Also add attribute open to the html Closes angular#767
1 parent f0c5738 commit 4d35dd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/angular2/docs/core/02_directives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Example of a component:
114114
selector: 'pane', | CSS selector on <pane> element
115115
bind: { | List which property need to be bound
116116
'title': 'title', | - title mapped to component title
117-
'open': 'open' | - open mapped to component title
117+
'open': 'open' | - open attribute mapped to component's open property
118118
}, |
119119
}) |
120120
@Template({ | Template annotation
@@ -154,7 +154,7 @@ class Pane { | Component controller class
154154

155155
Example of usage:
156156
```
157-
<pane #pane title="Example Title">
157+
<pane #pane title="Example Title" open="true">
158158
Some text to wrap.
159159
</pane>
160160
<button (click)="pane.toggle()">toggle</button>

0 commit comments

Comments
 (0)