Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use angle bracket syntax #298

Merged
3 commits merged into from
Feb 13, 2020

Conversation

patrick-emmanuel
Copy link
Contributor

@patrick-emmanuel patrick-emmanuel commented Feb 12, 2020

Update to use Angle Bracket syntax

@patrick-emmanuel patrick-emmanuel requested a review from a user February 12, 2020 13:00
README.md Outdated
@@ -162,7 +162,7 @@ You can pass any custom pikaday option through the component like this

```handlebars
<label>
{{pikaday-input options=(hash numberOfMonths=2 disableWeekends=true disableDayFn=(action 'someAction'))}}
<PikadayInput @options={{hash numberOfMonths=2 disableWeekends=true disableDayFn={{action 'someAction'}}}}/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still need to use (action 'someAction') because it is a nested handlebars expression.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this 👍 update made! :)

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving this! Changes look good except for one case in the README.md where we need to use the correct nested handlebars expression syntax (action 'something').

@ghost ghost added the documentation Explaining and demonstrating how to use this great addon label Feb 12, 2020
README.md Outdated
{{pikaday-input onOpen=(action 'doSomethingOnOpen') onClose=(action 'doSomethingOnClose')
onDraw=(action 'doSomethingOnDraw')}}
<PikadayInput @onOpen={{action 'doSomethingOnOpen'}} @onClose={{action 'doSomethingOnClose'}}
onDraw={{action 'doSomethingOnDraw'}}/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
onDraw={{action 'doSomethingOnDraw'}}/>
@onDraw={{action 'doSomethingOnDraw'}}/>

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@The-Bionic last tweak and I'll merge!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woah, thanks for catching this! 👍

@patrick-emmanuel patrick-emmanuel requested a review from a user February 13, 2020 08:02
@ghost
Copy link

ghost commented Feb 13, 2020

Grand, thanks again @The-Bionic!

@ghost ghost merged commit c0deb70 into adopted-ember-addons:master Feb 13, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Explaining and demonstrating how to use this great addon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant