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
5
votes
3 answers

ng-view won't display template

I have been working a bit with Angular and I tried to implement simple routing. I have a basic HTML which contains reference to all the required scripts and a ng-view tag. For some reason, when the page is loaded, the template isn't shown in the…
Guy Tabak
  • 53
  • 4
4
votes
2 answers

How to use ASP.Net MVC View .csthml as Angular View instead of .html

Im trying to use Angulars $routeProvider to load templates in to a container in a .cshtml file that is in my Views folder. Im getting a 404 with this code i Angular: .when('#/second',{…
Webbie
  • 537
  • 2
  • 10
  • 25
4
votes
3 answers

CSS not loaded in other views when routing in angularjs

Hey so I'm routing between views in Angularjs using routeProvider and ng-view. My issue is that my css does not get loaded when the route changes. I tried including Angular-css so that the css could be included in each view but it doesn't seem to…
Paul Bridi
  • 99
  • 1
  • 6
4
votes
3 answers

How to change the view from controller in angular js?

I am new to angular js and trying to work with ng-view and ngRoute directives. I have a loginPage.html in which i have code for login button written as follows and on clicking…
Minions
  • 1,273
  • 1
  • 11
  • 28
4
votes
4 answers

$routeProvider with templateURL not working

I am using $routeProvider in AngularJS with templateURl and my problem is that nothing happened, nothing shows on console and network tabs on dev tools (Chrome or Firefox). If i use template it works. Bellow follows the hmtl and js…
Oswaldo
  • 65
  • 1
  • 4
4
votes
0 answers

How to avoid memory leaks using Javascript google.maps.places.Autocomplete in Angular ng-view

I'm having trouble with google.maps.places.Autocomplete and single page app. Long story short I have a Angular directive with form with input field in it. The input field has autocomplete functionality so when clicked and address typed it shows…
spirytus
  • 10,726
  • 14
  • 61
  • 75
4
votes
2 answers

How to update content based on sidebar in AngularJS

I asked a question yesterday How to do multiple views with Angular to support header and sidebar? and based on that question I was able to make some progress in having a header and a sidebar for my AngularJS App. I've got a working fiddle here:…
birdy
  • 9,286
  • 24
  • 107
  • 171
4
votes
1 answer

AngularJS and 508 standards

I'm creating the analysis for a web application using AngularJS. The application needs to be 508 standards compliant. I know that certain devices used for accessibility read the HTML directly and using alt and longDescr attributes in elements, they…
pfernandom
  • 929
  • 10
  • 22
4
votes
2 answers

ng-view doesn't show anything in my angularJS app

I'm new in Angular. I have a simple angular app and I try to see how routing works in angular. I have three links which I want angular to change the URL for me and show the right view for each link in the same single page application. This is my…
BizMoto
  • 147
  • 3
  • 7
  • 14
4
votes
1 answer

AngularJs: ng-include not working when placed inside a ng-view tag

I am loading a html page via angular route inside a ng-view. The page which I am loading contains a ng-include tag, pointing to another html file. I tried all the below syntax =
3
votes
3 answers

AngularJS: ng-view directive not working

I'm learning AngularJS right now and I'm doing a simple web application that involves the use of ng-view directive. But as I try to run my codes, nothing appears on my Chrome browser, as if the ng-view was not really working. My index.html file is…
natnat
  • 97
  • 1
  • 11
3
votes
2 answers

AngularJS ng-view not showing routed pages

The ng-view is not showing pages and routing doesn't seem to work but it is loading the angular-route.min.js in the browsers console/network. The file structure is folders -> css, fonts, js, pages. there are 2 files in the root which are app.js and…
Nicholas Ritson
  • 869
  • 4
  • 13
  • 30
3
votes
2 answers

ng-view not following CSS of 1 View

I have banged my head against my keyboard for a small formatting problem. I am using ng-view and it seems to show the index view (main view using "#/" route) without the proper masonry CSS formatting, but it does show the other views (which are not…
Robert Tomas G IV
  • 2,315
  • 4
  • 18
  • 41
3
votes
2 answers

ngView is not rendering templates

I'm not able to render templates in ng-view in my angular app when I run it in various browsers or on a localhost using node. The console isn't throwing any errors. I've read everything I can find online about this problem but none of them is the…
3
votes
3 answers

SignalR not updating ng-view after changing page

1.- It's a simple ng-route setup, I have 3 buttons, each button navigates to a new path. 2.- I have a parent controller and a child controller for ng-view 3.- For ng-view I have a template with a span bound to property subCtrl.id and another span…
The One
  • 4,560
  • 5
  • 36
  • 52
1
2
3
23 24