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

Unable to access the page.url params? Aurelia pages only get initialized once? #11

Open
daleholborow opened this issue Dec 12, 2017 · 4 comments

Comments

@daleholborow
Copy link

Hi.

I was very excited to try out your framework adaptation but I am unable to figure out how to reinitialize the aurelia view models on each page load?? I want to be able to pass parameters, say, on selecting an item from a list, and then navigate to a detailed view accordingly, but I cannot see how to access the usual F7 pageData.query parameter objects? And the aurelia view models themselves seem to only ever get created once, and so i can never update teh view model data, nor can i figure out how to get access to the usual F7 goodies like the router for rerouting, accessing the uri parameters etc?

I can't see anywhere that you or Timo or the Typescript guy who forked your code ever do anyting more complicated than route between static pages? Am i missing something obvious?

Thanks

@alflennik
Copy link
Owner

I can only speak on a high level since it's been too long for me to recall all the nitty gritty details, but you should be able to get these tools to work for your use case. For the router, F7's is in use, so anything you can do with its router should be fair game. Again, that's high level, but if you figure out any specific F7 router feature that appears to be broken, I would be interested to hear about it.

@daleholborow
Copy link
Author

daleholborow commented Dec 12, 2017 via email

@alflennik
Copy link
Owner

Yes, this ended up as more a proof of concept since I didn't get a chance to continue the project that formed the basis of the repo. That, however, might be a good thing, because it means that clean solutions to the problems you are experiencing very likely exist -- just no one has done a PR for them yet. Let me know how you solve these problems, if you keep charging forward with this.

@AmitM30
Copy link

AmitM30 commented Jan 13, 2018

@daleholborow Can you check if adding this to the view-models helps:

determineActivationStrategy () {
    return activationStrategy.replace;
}

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

No branches or pull requests

3 participants