I need to get url parameter as value in angular js. Am new to angular JS
url : http://localhost:52073/TransRecord/ShowTransRecord?id=%22262115537004%22&cnmae=%22Demo%20Customer%22
I need id value = 22262115537004, cnmae value = Demo Customer. I tried with location.url. but don't know how to get exact parameter value
Thanks in advance
Imtiyaz AnsariPosted Sep 11, 2018, 8:11 AM
You Can Get URL id with simple js method
===============================
//===In your Case Example
var id=getUrlParameter('id');
var cnmae =getUrlParameter('cnmae');
Jaffer SadiqPosted Sep 12, 2018, 12:07 AM
Suraj KumarPosted Sep 11, 2018, 7:58 AM
Jaffer SadiqPosted Sep 11, 2018, 7:31 AM
Sanwar RanwaPosted Sep 10, 2018, 12:27 PM
Suraj KumarPosted Sep 10, 2018, 10:29 AM