Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Angulars JS gives error in URL routeProvider?

I use routeProvider in Angular JS. My links look as:

www.site.com/profile#/profile/profession/3

Angular JS tells that was error in page:

Uncaught Error: Syntax error, unrecognized expression: .nav-tabs a[href=#/profile/profession/3]
like image 934
Hamed Avatar asked Jan 18 '26 02:01

Hamed


1 Answers

you have to add quote to you href expression like this

.nav-tabs a[href="#/profile/profession/3"]
like image 163
Mathieu Bertin Avatar answered Jan 19 '26 16:01

Mathieu Bertin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!