-
Notifications
You must be signed in to change notification settings - Fork 7
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
Slide binding. It now accepts onChange #3
Conversation
@@ -32,7 +32,7 @@ | |||
<option value="3">Slide 4</option> | |||
</select> | |||
|
|||
<simple-slider style="width:612px; height:612px" auto-play="false" change="{{actualslide}}"> | |||
<simple-slider simple-slider-slide="actualslide" style="width:612px; height:612px" auto-play="false"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see a better attribute name for the slide attribute, actual-slide
or current-slide
are definitely better
Many thanks @danmmx ! 😄 These are awesome ideas and fixes! I'm taking the time to comment on a few things and let's get it merged :) |
Good to know @ruyadorno ^_^ let me know when you finished commenting so we don't overlap changes + comments. |
scope: { | ||
onChange: '&', | ||
slide: '=?simpleSliderSlide', | ||
slider: '=?simpleSlider' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to confess that my angular skills are a bit rusty these days, so help me out with this one.
Is it really a good idea to expose the SimpleSlider
object as a simple-slider
attribute?
My original idea was to hide everything behind the directive implementation and the consumer would just play with the attributes. I don't really know what are the trade-offs involved here. Since you're already exposing onchange
and the simple-slider-slide
attribute it seems that it would make sense to keep the consumers away from the simpleSlider instance, have you give it some thought? I would love to have some feedback 😊
Looking awesome 😄 I'm done with reviews, just the |
I think it's ready @ruyadorno 👍 |
👍 LGTM |
Slide binding. It now accepts onChange
4 mayor changes: