Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typescript read url search params

const product = urlParams.get('product')
console.log(product);
// shirt

const color = urlParams.get('color')
console.log(color);
// blue

const newUser = urlParams.get('newuser')
console.log(newUser);
// empty string
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #typescript #read #url #search #params
ADD COMMENT
Topic
Name
2+5 =