angularjs is complaining about an unexpected token in an expression, when I try to use a string. Why?-Collection of common programming errors
I found the problem. Instead of "state.name==='index'"
, I should have written "state.name=='index'"
. pkoziowski.opensource was right, in that you can’t use conditional statements, but what they mean by that, is that you can’t use if statements, or any control flow statements for that matter, so you couldn’t do this:
o