Questions tagged [ng-view]

an angular.js directive that complements the $route service by including the rendered template of the current route into the main layout file.

348 questions
-1
votes
1 answer

No errors on console but html doesn't loading

I have no idea why this doesn't work. What I'm doing wrong here? I have no errors in console but html from main.html and about.html doesn't load. When I use controller directly in html it does work well but when I use above code ng-view doesn't get…
ekstro
  • 461
  • 4
  • 15
-1
votes
1 answer

Angular multiple instances of the same controller are created

In my example below you can see that each time you go to a page a new instance of the same controller is created with a different id, and the old one is not destroyed, the setIntervat method keeps logging the corresponding scope id and fruit name on…
alpar
  • 1,577
  • 1
  • 10
  • 7
-3
votes
1 answer

how to inject html page in ng-view

All the codes I found on any of tutorial was to inject a message string rather than html page. how do I inject html page using ng-view? Say structure of SPA is 2 links "Add" and "View" Add injects add.html and View injects View.html
surbhi bakshi
  • 160
  • 1
  • 1
  • 17
1 2 3
23
24