Comments (4)
Thanks for the bug report. There is obviously some scenario I have missed among my tests.
Could you send a minimal setup that still fails?
I'm testing (test/should_send_wildcard_id_on_load.html
)
<div data-bind="page: {id: '?', sourceOnShow: '../test-data/{1}.html'}">
</div>
and in the js code
location.hash = "#ipsum";
var viewModel = {
};
pager.extendWithPage(viewModel);
ko.applyBindings(viewModel);
pager.start(viewModel);
and it seems to work. Maybe there is some combination of properties that I haven't handled?
Are you "deep loading" (e.g. loading /foo/bar.html) content? If so, are you specifying deep: true
(see Deep Loading Content ).
Which dist (pager.amd.min.js, pager.min.js, ...) are you using? Which browser(s)?
from pagerjs.
I have prepared new test to reproduce the problem
Actually, I can send it as push request.
from pagerjs.
Excellent. Send it as a push request.
I have an idea what the problem might be. Pagerjs used to run beforeShow/showElement/afterShow
to often previously. The problem is probably that it is triggered to few times now. Didn't consider wildcards...
from pagerjs.
WIldcards are fixed (for now). Thanks for the test and good luck!
from pagerjs.
Related Issues (20)
- Where to find pager.min.history.js? HOT 3
- Multiple functions to route guards HOT 3
- Node dependencies and development status HOT 2
- Load the same viewmodel and bind the view on click every time HOT 2
- Is PagerJS still maintained? HOT 13
- Update view model after parameter changes HOT 1
- For version 1.0.1, bower.json has the wrong version ("1.0.0") HOT 1
- URL parameters with ampersand (&) in value get truncated HOT 2
- Can't make HTML5 History work, so no #!/ urls
- A possibility to call afterShow method anytime.
- Multiple active pages
- Cache bust for sourceOnShow? HOT 1
- See Milestones on pagerjs.com is dead link HOT 1
- Version 1.0.1 not in npm HOT 1
- Pagerjs not working with require HOT 1
- Params does not parse arrays correctly HOT 2
- {page: source} problem HOT 2
- Is is possible to use same viewModel for multiple views? HOT 1
- Make pager.js announce when source: fails
- beforeShow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagerjs.