SoftEngineer1
SoftEngineer1

Reputation: 57

How to grab specific part of url in AngularJs

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

How to grab Aetna834

Upvotes: 0

Views: 46

Answers (1)

Tom A
Tom A

Reputation: 964

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

Upvotes: 1

Related Questions