Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vuejs get the url params withour router

created() {
    let uri = window.location.search.substring(1); 
    let params = new URLSearchParams(uri);
    console.log(params.get("var_name"));
  },
    
//Without vue-router
 
PREVIOUS NEXT
Tagged: #vuejs #url #params #withour #router
ADD COMMENT
Topic
Name
2+3 =