docs(02_directives.md): Change the description of bind property

Also add attribute open to the html

Closes #767
This commit is contained in:
Sekib Omazic 2015-02-24 11:09:07 +01:00 committed by Misko Hevery
parent f0c5738204
commit 4d35dd4d45
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ Example of a component:
selector: 'pane', | CSS selector on <pane> element selector: 'pane', | CSS selector on <pane> element
bind: { | List which property need to be bound bind: { | List which property need to be bound
'title': 'title', | - title mapped to component title 'title': 'title', | - title mapped to component title
'open': 'open' | - open mapped to component title 'open': 'open' | - open attribute mapped to component's open property
}, | }, |
}) | }) |
@Template({ | Template annotation @Template({ | Template annotation
@ -154,7 +154,7 @@ class Pane { | Component controller class
Example of usage: Example of usage:
``` ```
<pane #pane title="Example Title"> <pane #pane title="Example Title" open="true">
Some text to wrap. Some text to wrap.
</pane> </pane>
<button (click)="pane.toggle()">toggle</button> <button (click)="pane.toggle()">toggle</button>