I was working on AngularJS and go to the second part of Routing. I have had this happen before, but I entered the code and was told it was wrong. Then, when I got the correct code, it was exactly the same, give some spacing/tabbing differences.

I don't believe they do.... In programmming languages (Except for Python) Tabs and Spacing are just used to make you code more readable, as are comments. I think the reason it didn't work the first time and worked the second time is because CodeCademy does it's own little checks to see if your code is correct, and it must've been a part of that