Questions tagged [vaadin-router]

9 questions
5
votes
1 answer

How to access the location.params of the vaadin-router using lit?

According to the documentation and demos provided by Vaadin the route parameters should be bound to the location.params. The examples provided are using polymer, and when I use LitElement the location.params is undefined. Is there a trick other than…
Alex Jongman
  • 189
  • 10
3
votes
1 answer

Initialize router events from a template file in a Vaadin (20) Flow project

I have a Vaadin 20 application that is Flow-based. All views are written in Java, and the routes are set up with Java. I wanted to have a nicer navigation component, so I created a frontend TS template for my project, as frontend/src/vaadin-nav.ts.…
Jens Jansson
  • 4,626
  • 4
  • 25
  • 29
1
vote
0 answers

Passing data between Lit Element templates when using router

I am new to Lit Element, let's say I have two lit templates : and and I'm using Vaadin Router to navigate between them. I have initialized the Routes as : router.setRoutes([ { path: "/", component: "page-one", }, { path:…
1
vote
1 answer

Lit-Html js-api does not replace icon-elements

I have installed lit as well as fontawesome as npm packages. I also use the Vaadin Router package for some routing. Now I want to insert some icons on my own elements. While the icons are replaced correctely in the index html they are not in all the…
theoretisch
  • 1,718
  • 5
  • 24
  • 34
1
vote
1 answer

How the serve static html files with vaadin router

I have te following route configuration in my hilla app router.setRoutes([ {path: '/', component: 'home-view'}, ]); this is works, but I need to publish some static html files. Not sure where to put the files and how to configure router to make…
virtually
  • 13
  • 3
1
vote
1 answer

Why does VaadinRouter route me when not authenticated?

I am fiddling around with VaadinRouter,trying to protect routes. Below you can see the onBeforeEnter code of my component to protect: authenticatedDummy = true; public onBeforeEnter( location: RouterLocation, commands:…
R. Polito
  • 544
  • 6
  • 21
1
vote
1 answer

Vaadin Router (non-java) Address Bar Entry not working

Attempting to create a Single Page Application using Vaadin-router and Web Components. Everything works with normal navigation. However, when typing a valid address into the address bar, I get the following output to the screen and no error in the…
1
vote
1 answer

How do I deliver static html pages with vaadin router (client side)?

vaadin-router is a small client side javascript router. How do I deliver an arbitrary number of static html pages?
xwoker
  • 3,105
  • 1
  • 30
  • 42
0
votes
0 answers

Update html element from Javascript in Web Component

I am developing a PWA app using web components and vaadin router, this is my flow index.html (main entry to PWA app) index.html has reference to local ./js/index.js and routes index.js has references to web components for each path Each individual…