Hello I have class! I’m trying to get the parameters from the URL like http: // localhost: 8080 / square? Id = 4, but I can’t get anything. I have error
Did you manage it to work or not I’m having the same issue !
I completely missed that question from 3 months ago :) Will answer it though, for it might be common problem.
Here it fails to set field value because the field annotated with @UrlParameter
is private
.
Another problem is that field value is used in constructor, when route is not parsed yet. Recommended approach is to implement beforeEnter
of BeforeEnterListener
interface.