0

My Url looks like : www.ccadmin/admin.jsp?id=Aetna834

How to grab Aetna834

3
  • possible duplicate of How to get the value from URL Parameter? Commented Sep 25, 2014 at 15:36
  • Is there any difference in AngularJS Commented Sep 25, 2014 at 15:40
  • No, it's plain javascript Commented Sep 25, 2014 at 15:41

1 Answer 1

1

You can do it in plain JS, or you can use the $location service, which is a little easier IMO. "Aetna834" would be found using:

$location.search().id

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.