get specific path from routes angular code example
Example 1: javascript get current url
var currentUrl = window.location.href;
Example 2: get params from route vuejs
const User = {
template: '<div>User {{ $route.params.id }}</div>'
}
var currentUrl = window.location.href;
const User = {
template: '<div>User {{ $route.params.id }}</div>'
}