Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

feat(pagination): plug into ngModel controller #999

Closed
wants to merge 1 commit into from

Conversation

bekos
Copy link
Contributor

@bekos bekos commented Sep 12, 2013

No description provided.

BREAKING CHANGE: Both `pagination` and `pager` are now integrated with `ngModelController`.
 * `page` is replaced from `ng-model`.
 * `on-select-page` is removed since `ng-change` can now be used.

  Before:

  <pagination page="current" on-select-page="changed(page)" ...></pagination>

  After:

  <pagination ng-model="$parent.current" ng-change="$parent.changed()" ...></pagination>
@pkozlowski-opensource
Copy link
Member

Oh, @bekos, now I perfectly understand what you've meant by isolated scope + ngModel.... Looking at the examples I'm not sure it is any better after the change... In fact I tend to agree with you that it is probably worse like this :-( I'm really sorry, haven't though about it... I will let you decide what to do with this one but I'm afraid that after the change it might be even more confusing to users... Once again, sorry for not catching this earlier on...

@bekos
Copy link
Contributor Author

bekos commented Sep 13, 2013

@pkozlowski-opensource Agree and no problem :-)

Even though the directive implementation is nicer, the API becomes annoying to use.
It will definitely worth it when this AngularJS "bug" is solved. Closing for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants