简体   繁体   中英

Pass <input> value as Ember component invoking param

I'm quite new to EmberJS and trying to get the component invoked with a param which is dynamicly set via user's input:

<input type=date>
{{super-calendar startDate='/* value from the input */'}}

Do you have an idea what is the proper way to do it in Ember?

someVariable can be property or computed property of controller

<input type=date value=someVariable>
{{super-calendar startDate=someVariable}}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM