Closed wkwiatek closed 9 years ago
Hi, @wkwiatek.
Thanks for the pull request. However, I think that the error is actually in the documentation in the README.md, which should have read
<div iscroll="{mouseWheel: true, momentum: true, refreshInterval: 500}">…</div>
because the directive was designed to split IScroll-specific and directive-specific config parameters into separate config objects. The code around _extractOptions()
at https://github.com/mtr/angular-iscroll/blob/master/src/lib/angular-iscroll.js#L187 will remove directive-specific options from the config object being forwarded to IScroll
.
I suggest that I just correct the README.md, as I did in d91eee8434e5de088bcb5d6650210e3e691ea60d. Is that OK with you?
Okay, fair enough. Thanks for your immediate response.
OK. Since I've already updated the documentation, I'll close this PR now.
Currently there is no way of passing directive's options as stated in readme:
It takes whole directive's options content as iScroll options, so the way it works is:
These small changes are to fix this inconsistency.