Skip to content

isolated scopes data-binding #12

@Grigorius

Description

@Grigorius

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">

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions