Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Routing in angular js is not workingas expected

 
somashaker goud
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys, I am new to angular js. Below is the code which looks simple but not working as expected.

index.html



app.js

 
Stefan Evans
Bartender
Posts: 1826
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi somashaker,

Can you be a bit more specific about "not working as expected" ?

What is happening?
Do you see an error message?
Is it doing something you don't want it to do?
Is it not doing something you think it should?

This is primarily a Java forum, rather than Angular/Javascript, so you might have more luck in a different forum. 
But in any case, your question needs clarification first.
 
somashaker goud
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@stevans : my problem is even after I click on hyper links nothing is getting displayed in main content.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65658
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try typing the path into the browser bar? That will tell you if the problem is with the routing or with the links.

Are there any errors shown on the console?
 
somashaker goud
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@stevans Thanks

issue got resolved. There was problem in my javascript where I was routing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!