an angular.js directive that complements the $route service by including the rendered template of the current route into the main layout file.
Questions tagged [ng-view]
348 questions
2
votes
0 answers
Stop ng-view from deleting old content on route change
In my current app there are quite some complex calculations to do after $routeChangeSuccess before the new page is really fully shown. This causes a bit of "flickering" as the content changes position and size. I'm already preloading the needed JSON…

Felix Engelmann
- 399
- 5
- 17
2
votes
2 answers
How can I hide certain contents of index.html page in an angular ng-view?
I was wondering whether I can hide certain sections on the index.html file when I access a view in angularjs.
My index.html file contains a bottom menu bar on all the views and I have created a home.html view where I don't want to include that menu…

Ken Ryan
- 539
- 1
- 10
- 31
2
votes
2 answers
ngView disappears when navbar dropdown is clicked
I am trying to implement a page that contains a navbar (http://getbootstrap.com/components/ see navbar), and the content of the page is inserted from a partial html via ngView. However when the dropdown is clicked, the entire ngView portion…

aol
- 357
- 5
- 15
2
votes
1 answer
Scroll to top after route has changed (nested divs)
I'm using angularJS with ngRoute. When the user scrolls down and then changes the route the new page is scrolled down as well. I have read about using autoscroll="true" with ngView attribute. But my problem is that because of my HTML structure the…

Fidel90
- 1,828
- 6
- 27
- 63
2
votes
1 answer
Angular.js: taking a picture from a subpage - ng-view issue
I'd like to add a new subpage to my Angular app at which I could snap a photo from a webcam. I found the working example of taking a photo by using HTML5 here. For routing within the app I'm using ng-view.
And here's the problem: when I paste html…

LukSy
- 23
- 3
2
votes
3 answers
How to do preloader for `ng-view` in Angular JS?
I use on web page.
When I click link in block
is loaded HTML template was set in routeProvider. Also together is done request AJAX that returns data that was loaded template.
Now problem is that after click I get HTML…

Hamed
- 410
- 1
- 13
- 21
2
votes
2 answers
Proper way of accessing the $scope within ng-view
Here is my plunk.
I am using ngRoute.
I am trying to increment a value by ng-click, and when I click "Show total" link, it should load the ng-view template showing the value. However, it does not show the incremented value. It's like it's not…

qtgye
- 3,580
- 2
- 15
- 30
2
votes
1 answer
Angularjs Routing parameters not working
I am trying the following code in my Apache server and it's not working (When click the link, nothing happen). It suppose to show title/content for each link.
index.html