1,285 questions
0
votes
1
answer
55
views
html5mode does not remove hashbang mode in angularjs
I am trying to create an SPA in AngularJS using ngRoute. To do so, I have enabled HTML5 mode to remove the # from the URL. However, when I navigate to a different route (e.g., /about or /contact), the ...
0
votes
1
answer
81
views
images not loading when changing base url in angular JS project
I want to change the base url
when load the application url is http://localhost:4200/#/ I want to change this to http://localhost:4200/carrom/.
For doing this I changed base url to then loading url ...
1
vote
0
answers
30
views
Routing in AngularJS is not working for me
<script>
var app = angular.module('myApp', ['ngRoute']);
app.config(function($routeProvider){
$routeProvider.when('/dataBinding', {
template: `
<div ng-controller="...
1
vote
1
answer
74
views
Angular JS Routing is not working in ASP.NET MVC and Web API project
I have two main ASP.NET MVC controllers: Home and User. Home has an Index method that is returning an Index view which is main page for loading partial pages (User Detail, Facility, Login Page) in ng-...
0
votes
1
answer
53
views
How do you add two controllers to the same view in route angular
The part of the code I want to change is
var profile = {
name: "web.profile",
parent: "web",
url: "/profile",
title: "...
0
votes
1
answer
26
views
cannot resolve from state ' ' . What configuration did i put wrong?
I am trying to go using ui-sref but it's saying cannot resolve from ''. What did I do wrong in the route configuration. Everything seems correctly configured from my point of view. But i am getting ...
0
votes
1
answer
100
views
I use the following approach to display the page in a new tab, But when I am using target=“_blank” , my params were lost
<a ui-sref="app.reports.equipmentarg({factoryId: fid})" target="_blank">Click Me</a>
it works fine and the parameter passed if I remove the target attribute but then it opens in the ...
0
votes
1
answer
44
views
ng-view 'Maximum call stack size exceeded after' application start
I am loading a page after the login process is complete. Basically login page having one ng-view, after login success I'm trying to load an entirely new page to replace the content.
$routeProvider
....
0
votes
1
answer
92
views
Angular JS - variable returning undefined
I've got a simple to do application, you enter an item on the new item partial/view, which then adds a new entry onto the UI in the home page partial.
I have a service which allows me to share the ...
0
votes
1
answer
63
views
$routeProvider is not defined - Unable to get through this
I've been trying to get a basic project running with ng-route.
I have two views - View A and View B. They are controlled per
flipFlop.config(['$routeProvider', function ($routeProvider) {
$...
1
vote
1
answer
6k
views
How do I solve AngularJs -routing not working [duplicate]
I am writing some simple code to practice routing in angular. I have an index.html file which has links to access the respective templates and a div element to display the templates. The templates ...
0
votes
1
answer
40
views
Routing issue with angularjs while version update
Scenario : I have update my current angularjs version from AngularJS v1.5.5 to AngularJS v1.5.7. Application is working fine but there is issue with URL routing it is behaving different. Let's see ...
2
votes
1
answer
483
views
Can AngularJS routing be used for some URLs and regular GET requests used for others?
I work on an ASP.NET MVC app which originally used traditional navigation (HTTP GETs and POSTs) and no AJAX/Fetch functionality. Over time, we have brought in AngularJS to take advantage of two-way ...
0
votes
1
answer
169
views
AngularJS $routeProvider Not loading content or logging to console from controller
I am trying to make a website which does not need to refresh when going from page to page. I have achieved this before by using the angularJS $routeProvider but for some reason my content will not ...
1
vote
0
answers
321
views
Lazy load routes in Angularjs with $ocLazyLoad
I'm using Angular-ui-router for routing and oclazyload to load each controllers base on routes (lazy loading).
Problem: My route.js file is getting bigger and bigger (8000 line until now!)
I lazy load ...