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
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…
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
2
votes
1 answer

Routing with angular.js Blank page

I did this plunk to ask you to help me with that little problem. I'm following a tuto about angular js but i'm stuck with the comprehension of how routes are working. Can you, please help me to understand why the home page is blank ? Thanks for…
Slater
  • 817
  • 2
  • 10
  • 16
2
votes
2 answers

angularJS load non-angular javascript file within ng-view

I use ng-route with ng-view for my client canvas drawing app. The drawing code is in a separated non-angular js file. I need to put

and