Closed edmondchui closed 7 years ago
Agreed. I just noticed this while reviewing another PR and it really bothers me. However, I'm not comfortable making a breaking change to the API just because it's inconsistent. I'd rather just write it better next time when I release the Angular2 version of the plugin. I'm going to close this as wontfix for now but feel free to leave a comment or re-open it if you think I'm wrong. I'm open to suggestions.
In all methods except
onChange()
, the scope parameter is always the last parameter. Even the documentation is having the last parameter ofonChange()
as scope. We need to change it to make it consistent.