erikringsmuth / polymer-router-demos Goto Github PK
View Code? Open in Web Editor NEWDemo routing with Polymer
License: MIT License
Demo routing with Polymer
License: MIT License
Hi , when I download and upload the Router Demo , I can get to a page via link, but not through the URL - am I missing something?
Home
http://test7.pushka.com/
Click Notes
http://test7.pushka.com/notes
paste in the link and press enter
http://test7.pushka.com/notes
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
How would I get URLs working?
Do I need to link incoming URL requests to index.html or something?
//EDIT//
(this is talking about the router I linked to)
Ok - I found that for testing it is run on a Node.js server,
// let pushState and the router do the navigation. return index.html for all non-static-content routes.
app.get('*', function(req, res) {
res.sendFile(__dirname + '/index.html');
});
so all traffic goes through index.html and it serves the right files accordingly
How would this work on an apache server?
still using a JS file?
.htaccess rewriting?
Curious if you have done any investigation here.
Hi,
I'm just wondering how app-router element intercept the html basic element and just route only the content of routing section without refreshing the whole page. I added few links in my single page app and tried to route using app-router element. But it refreshes the whole page act as a normal link.
I'm new to polymer so may be i'm missing some concepts.
Thanks
Regards
Shanika
olá, pretendo usar o componente de vocês porém o exemplo no git não esta funcionando e não consigo implantar, poderia mandar um link com um exemplo completo, já com os links? para que eu possa analisar como implantar?
Obrigado
Hi, I want to ask something.
I got a code like this:
when i open the page, i only can get the page load at route "/", other than that it will return
"Cannot GET /login"
Why can't I go to that URL?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.