Following error shown up in my console whenever my page loads.
\"Uncaught Error: Syntax error, unrecognized expression: #/about\"
My code is as below:
<
This may be a very rare situation, but I've got same error because of some legacy code using Colorbox and location.hash
.
jQuery(function() {jQuery('.content-row .csc-default a').tooltip({placement:'top'});
jQuery('a.gallery').colorbox({
maxWidth:'95%',
maxHeight:'95%',
slideshow:true,
current:' {current} / {total}',
opacity:'0.80',
transition:'none',
speed:'550',
slideshowSpeed:'5500',
overlayClose:true,
fixed:false,
escKey:true,
arrowKey:true,
loop:true,
title: function() { return $(this).data('original-title')},
close:'',
previous:'',
next:'',
slideshowStart:'',
slideshowStop:'',
rel: function() { return $(this).data('rel')}
});
if (location.hash) $(location.hash).collapse('show'); //when this line is commented, Angular Route works properly
});
Strange thing is that error was happening only when loading page with link to view like localhost/index.html#/main
or simply reloading page with any view selected.