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

isolated scopes data-binding #12

Closed
Grigorius opened this issue Jul 7, 2014 · 2 comments
Closed

isolated scopes data-binding #12

Grigorius opened this issue Jul 7, 2014 · 2 comments
Assignees
Labels

Comments

@Grigorius
Copy link

If you are using for example http://angular-ui.github.io/bootstrap/#/modal which creates an isolated scope - then the pageNum attribute is no longer databinded.

To fix this issue I just moved pageNum one level deeper - so the pointer is referenced:
scope.pageData = {}; scope.pageData.pageNum = pageNum;

Also in the example:
Viewer.html has
<input type="text" min=1 ng-model="pageNum">
it should have (type and model changed)
<input type="number" min=1 ng-model="pageData.pageNum">

@sayanee
Copy link
Owner

sayanee commented Jul 8, 2014

thanks @Grigorius! I will take a look into this.

@sayanee sayanee self-assigned this Aug 30, 2014
@sayanee
Copy link
Owner

sayanee commented Sep 25, 2014

Thanks for your suggestion! I have added this as part of tweaks / variations that can be used with this library by adding a note to the readme and linking it back to this issue.

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

No branches or pull requests

2 participants