Reputation: 410
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]
Upvotes: 3
Views: 75
Reputation: 136174
As I commented your style needs to be changed to
From
.nav-tabs a[href=#/profile/profession/3]
To
.nav-tabs a["href=#/profile/profession/3"]
Upvotes: 2
Reputation: 754
.nav-tabs a[href="#/profile/profession/3"]
Double quotes should use in the href.
Upvotes: 2
Reputation: 1624
you have to add quote to you href expression like this
.nav-tabs a[href="#/profile/profession/3"]
Upvotes: 4