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
0
votes
2 answers
Cannot inject view with angularjs 1.2
My code, as below, does not substitute the mg-view with the template from the route configuration.
I get {{message}} to be replaced by 'in controller', which shows the controller is alive, but nothing more happens.
View:

Stéphane de Luca
- 12,745
- 9
- 57
- 95
0
votes
3 answers
How do I load an external HTML file and have the scope variables renderred properly in angularJS?
What I am trying to do is after clicking on a buddy in the buddy list, load a chat dialog template HTML file without disturbing other elements in current DOM just like chatting in facebook.
My problem is that after loading the html template file the…

chiu
- 3
- 1
- 3
0
votes
2 answers
How to jump out to new page instead of displaying content in ng-view when using AngularJS routing?
guys, I got a question about Routing function of AngularJS, that is, we know all contents will be displayed in ng-view if using Routing, but how could I jump out to a new page, e.g, when clicking "/logout" I want to quit to login.jsp?

user3496211
- 41
- 3
0
votes
1 answer
Trouble accessing $scope from a ng-view
When the site runs I only see the headers and instead of the #outerBox div (contains my ng-repeat) I see
Here is my code
var module = angular.module('app',…

Dustin Clark
- 92
- 1
- 9
0
votes
1 answer
AngularJS scalability when using ng-view/partial
Is it possible to add script tag inside a partial/template in AngularJS?
I can only use ng-view (with router) if I load the partial controller.js in the main page.
This will not work well if you have a app with a lot of pages.
I have heard about a…

Jens Alenius
- 1,931
- 2
- 16
- 20
0
votes
1 answer
using two different data-ng-view in angularjs
adminpage.html
userpage.html

user3044147
- 1,374
- 5
- 14
- 23
0
votes
2 answers
SPA using Angularjs, pages refreshes while Navigation
I have made a small SPA application using Angularjs (and Bootstrap).
Have followed all the specification from anuglar site and other references on internet.
To include the other pages dynamically in the main page it uses ng-view
However if we read…

Hemal
- 265
- 1
- 7
- 17
0
votes
0 answers
Do I need to unbind watches set in an ng-view's controller?
If I have various controllers loaded via routing/ng-view and some of those controllers set watches, am I responsible for unregistering these watches during every route change? Or does angular already take care of that for me via the normal…

jCuga
- 1,523
- 3
- 16
- 28
0
votes
1 answer
How to setup ngclass change when route change occurs in AngularJS?
I am trying to add a class on my main .container class when the route changes.
My current simple solution involves an ng-click on every main menu url (no other urls on the page):
app.controller('MainCtrl', ['$scope', function( $scope ){
…

hitautodestruct
- 20,081
- 13
- 69
- 93
0
votes
1 answer
a href in partial page conflicts with angularJS routing($rotueprovider)
Angular version : latest --1.2
I am loading views into ng-view based on $routeprovider, I am in the middle of developing an application, so right now I am just giving the URL in the browser and its corresponding VIEW is loaded.
Problem is I have…

Chetan Sandeep Renu
- 173
- 4
- 10
0
votes
2 answers
session username not showing inside angularjs ngView template but does outside of ngView
So I am able to show the username via mongoose passport-local within my successful redirect:
app.get('/profile', isLoggedIn, function (req, res) {
res.render('profile.html', {
user: req.user
});
…

studiobrain
- 1,135
- 2
- 13
- 35
-1
votes
2 answers
AngularJS Unexpected token < in JSON at position 0 in ng-view
I have a little problem. I'm working on angularjs single web application page and I'm trying to do add SockJS in angular module.
This is my main page.
Timeline Page

Gürsel
- 135
- 1
- 13
-1
votes
3 answers
Footer getting stuck on middle of the page
I'm working on an angularjs + node js application. I'm calling my views in my index.html as follows:

anonn023432
- 2,940
- 6
- 31
- 63
-1
votes
1 answer
Using ngView Makes Any Process Twice
When I use ngView and call a controller inside another one, this makes any process twice :
$routeProvider
.when('/', {
templateUrl: '/main.html',
controller: 'main'
})
.when('/user', {
templateUrl: '/user.html',
…

TheNone
- 5,684
- 13
- 57
- 98
-1
votes
1 answer
Is it possible to load ng-view automatically?
I would like to that way, if it exists, how to do that, ng-view (or ui view) loads, when load the page. For example: I would like to seperate header files, menu files, etc. So the Webpage should stands some views. I found only tutorials when views…

ktom
- 228
- 1
- 3
- 11