ranaroussi/pointjs

router is not working

mh-firouzjah opened this issue · 0 comments

Hi there
I was trying to use router in a page but it doesn't work well.
as I reviewed the router.js file in this repo it seems this file is not compatible with the documentation, for example documentations says we have to use:
<a href="/customers" point-route-container="body" point-route-html="/customers.html" point-route-json="/customers.json"> Customers </a>, all atters name starts with point but inside the router.js it searches for names starting with dom, and if we fix it then another issue raises Uncaught TypeError: point.loadHTML is not a function at HTMLAnchorElement.
so do you have any idea, how I have to use the router?

  • if it is required I could send the html file that I was working with.