This commit is contained in:
parent
f5cd66053f
commit
f8e7e73a0e
21
ember.md
21
ember.md
|
@ -41,11 +41,6 @@ layout: default
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
### markup
|
|
||||||
|
|
||||||
<img {{bindAttr src="avatarURL}}>
|
|
||||||
<button {{action follow}}>
|
|
||||||
|
|
||||||
### View
|
### View
|
||||||
|
|
||||||
App.InfoView = Ember.View.extend({
|
App.InfoView = Ember.View.extend({
|
||||||
|
@ -59,9 +54,17 @@ layout: default
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
{{view Ember.TextField class="input block"
|
### markup
|
||||||
valuebinding="emailAddresses" placeholder="Enter your friends's
|
|
||||||
emails here!" autofocus=true}}
|
<img {{bindAttr src="avatarURL"}}>
|
||||||
<button {{action invite emailAddresses}} class="btn big success">Invite your friends</button>
|
<button {{action follow}}>
|
||||||
|
|
||||||
|
Value binding:
|
||||||
|
|
||||||
|
{{view Ember.TextField class="input block" valuebinding="emailAddresses"}}
|
||||||
|
|
||||||
|
Actions:
|
||||||
|
|
||||||
|
<button {{action invite emailAddresses}}>Invite></button>
|
||||||
|
|
||||||
<a href="#" {{action set "isEditingContacts" true target="view"}}
|
<a href="#" {{action set "isEditingContacts" true target="view"}}
|
||||||
|
|
Loading…
Reference in New Issue