Trouble with routing

10 views
Skip to first unread message

Tina Johnson

unread,
Aug 2, 2014, 11:45:53 AM8/2/14
to ang...@googlegroups.com
Hello All,

I'm trying to create an app. And in this app, routing isn't quite working for me. As you can see in the file, the controller for television.html is televisionController. I tried console logging to see if the controller is called. But it doesn't seem to work. It does route to television.html (the url changes). I use firefox browser. Anyone has any idea of what is going wrong?
P.S: The code can be found here

Thanks!

Erik Starck

unread,
Aug 2, 2014, 12:14:20 PM8/2/14
to ang...@googlegroups.com
Seems like a copy paste error. Try removing the semicolons after the when(..) function calls in app.js.


BR Erik


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Tina Johnson

unread,
Aug 2, 2014, 2:21:21 PM8/2/14
to ang...@googlegroups.com
Yes. That was it..my bad.
Thanks a lot Erik!


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/IZA6HsNs2PI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages