327 questions
1
vote
0
answers
1k
views
Getting error : Transition Rejection($id: 0 type: 6, message: The transition errored, detail: TypeError: this.parent.parameters is not a function)
Getting error : Transition Rejection($id: 0 type: 6, message: The transition errored, detail: TypeError: this.parent.parameters is not a function)
I'm upgrading angualrjs 1.5 to angularjs 1.8.2
...
1
vote
0
answers
540
views
ngRoute combined with react-router
Is there a way to make AngularJS’s ngRoute work together with react-router ?
Main routing is inside the AngularJS application and I tried to add react-router for only a small part of the app but it ...
0
votes
1
answer
82
views
How to ngRoute between two pages
Trying to use ngRoute to route between two pages, main.html and second.html. Using angular version 1.7. The index.html default to the correct main.html but will not route to second.html when clicking ...
0
votes
0
answers
87
views
AngularJS Route Provider not working in MVC application
I am trying to convert from MVC routing to Angular Routing for one of the MVC Controller using routeProvider. No matter what combination of #, #! or / I use I am not getting routing to work.
I have a ...
-1
votes
2
answers
95
views
How to use same controller in different ngRoute pages
Hi I want same controller in different pages. How to pass the object to different pages. Below is my sample code.
Page1.html
<body ng-app="myapp" ng-controller="studentController">
<div&...
0
votes
1
answer
168
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 ...
0
votes
0
answers
381
views
java rest api an angular js POST call
I'm new to angular with rest api. Simple login page to home page navigation with java , rest api, with angular js 1. But on click of login button it redirects to same login page. But I could see logs ...
1
vote
1
answer
84
views
unable bind using ng-bing in Angularjs
Trying to insert HTML content on the page using ng bind as below but unable to bind it.
Script:
SS_Mod_App.controller("SS_Ctrl",/*"$interpolate",*/ function ($scope, $http, $location, $window, $sce/...
0
votes
1
answer
41
views
AngularJS ngRoute - specify data for target page, with data not appearing in URL
I'm using AngularJS and I would like to redirect a user when he clicks a button on /page1 to /page2. I currently use AngularJS routing for this using ngRoute which works all fine. However, in addition ...
0
votes
1
answer
169
views
AngularJS angular-ui-router.min.js breaks app when BundleTable.EnableOptimizations = true
I have a very simple project in AngularJS 1.7.5 (and tried 6).
I am using system.web.optimization to do my bundling.
When running the project with optimization turned off it works fine.
When I ...
0
votes
1
answer
54
views
$location.path is not redirecting to page in Angular JS
Here is the code.In URL it is redirecting to #!/dashboard but it is not displaying anything.
var app = angular.module("myapp", ["ngRoute"]);
app.config(function ($routeProvider) {
$routeProvider....
0
votes
0
answers
41
views
C# Web Api + AngularJS Route in separeted projects don't work
I have a Solution with two projects. One is the frontend, made with AngularJS, the backend is made with c# web api. When I use the debugger with only backend the api url's work fine, but when I debug ...
1
vote
0
answers
104
views
Angular js [ng-Route] on form submit using CodeIgniter
I have a 2 different tabs,1st tab contains the form then after the form submit view for next tabs should get loaded and control should pass on the next tab. how to achieve it by using codeignator and ...
0
votes
1
answer
56
views
ngRoute don't display view with in ngView
I'm starting with a basic app with c# web api + AngularJS. I'm using AngularJS ngRoute for routing. The page is perfectly loaded, and the code in the secondary files is displayed correctly. The ...
1
vote
1
answer
2k
views
The controller with the name '..' is not registered
Im using AngularJS 1.6 and have a problem with routing, where Controller is unregistered, although it seemed that there was no problem. Tried different solutions, but they did not help.
products.html
...
0
votes
1
answer
108
views
Routing Demo stops working when updated to AngularJS 1.6
When I updated the code snippet from this answer to use AngularJS 1.6, it stopped working.
The Login and Register links no longer change the view.
The DEMO
var app = angular.module("myApp", ["...
0
votes
0
answers
80
views
Two views sharing same controller
I have a view which is basically a trimmed down version of the original template. I have trimmed down the view to only the elements I need. I can access the trimmed down view at '/newclientloanaccount/...
0
votes
3
answers
92
views
ng-view is not working in angularjs 1
i have angularjs 1 application.
i am trying to render htmls by using ngRoute. But in app.js app.config() method is not executing by which i am not getting html in ng-view. I am not getting any error ...
1
vote
0
answers
1k
views
Route with AngularJS 1.7.2
On the link below, I have an application with some route problem and I can't figure out why this is happen. I'm using Node.js to configure a http-server.
When I try to access localhost:8080/#home, ...
0
votes
1
answer
126
views
get path variable inside templateUrl [duplicate]
i have angularjs 1 project. i have used ng router.
i want to use url appName in templateUrl path, so how can i do this ?
after adding this i am geeting below error.
ReferenceError: appName is not ...
0
votes
0
answers
148
views
After refresh AngularJS page in gulp server, showing error as cannot GET
I have a gulp server with AngularJS 1.6 application.
I have an ng-router. I am trying to remove #! symbol from the url, so I have used ng-router. I have used $locationProvider.html5Mode(true); and in ...
0
votes
0
answers
44
views
ngRoute How to pass data to controller in other view [duplicate]
I want to pass the Response return by the $http.post to another
controller. I tried so many ways and also searched on the internet,
but i not reach to the point.
Function "evaluateScore()" inside ...
1
vote
0
answers
84
views
Removing # prefix from an AngularJS site without breaking links
I have an AngularJS website based on Firebase.
I have managed to remove the # prefix and reqrite urls like /#/home to /home,
using the code below:
.config(['$routeProvider', '$locationProvider', ...
0
votes
1
answer
49
views
assign data to angularjs var and load a view that display that object's clicked data
I display some "courses" in a list by assign all courses to angular var and use ng-repeat to show all "courses".
When user click on "course" the application need to load a view (by using ng-view and ...
1
vote
2
answers
1k
views
Angularjs route on button click is not working
I have been trying to make a angularjs application where I want to route to a different html page on a button click. But is not working for some unknown reasons.
My html code
<!DOCTYPE html>
&...
0
votes
1
answer
439
views
Angularjs how to make ngRoute without hash-bang [duplicate]
In my angularjs application I am having index.html in public folder which have below code,
<body ng-controller="TheController">
<div id="startdiv">
<label>Username</...
0
votes
0
answers
99
views
AngularJS not displaying the URL
Why "main" is not being displayed in the URL ? Here is the Plunker.
index2.html is the working file. I have modified index2.html to index.html to include routing but it's not working.
app.js has ...
0
votes
1
answer
1k
views
AngularJS: Controller inside ng-view
I have problem with controller load when I triggered ng-route.
This is my main page:
<!DOCTYPE html>
<html>
<head ng-app="testapp">
<script type="text/...
0
votes
0
answers
67
views
AngularJS routing: Views are not getting updated
I am learning how to implement routing in AngularJS. Everything else is working fine but the views are not getting updated when I click on the navigation.
How can I achieve the desired functionality ...
2
votes
1
answer
384
views
Compare previous history route with current route in angular
Is it possible to get previous back hit route and compare with current route if the user were in current page before in angularjs ng-route?
e.g
If user is on list feed and click on item then hit ...
0
votes
1
answer
423
views
Multiple controllers for a single template view
In angularjs, I have already made view templates consisting of multiple controllers. Now while routing can we specify multiple controllers to one template or there should be only one controller for a ...
0
votes
1
answer
40
views
AngularJS doesn't render view specified in $routeProvider
var myApp = angular.module("myApp", ["ngRoute"]);
myApp.config(function ($locationProvider) {
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
});
myApp....
0
votes
1
answer
1k
views
html5mode breaks AngularJS routing
I am having an issue with using html5Mode with ngRoute not quite like issues others have had with the same thing. Here is the most relevant section of my code:
(function () {
var config = function (...
2
votes
1
answer
1k
views
InternalError: too much recursion <div ng-view="" class="ng-scope">
I am new to angularJS . I am stuck on above error.here is my index.html
<body ng-app="myApp">
<div ng-view></div>
<a href="table">click</a>
<script src="....
0
votes
1
answer
274
views
Want to add a menu and create a navigation in pages with AngularJS
Following is a HTML file which is used to enter a movie title and search results are displayed.
I need a menu to this page, which which redirect to different pages and those pages will like about us, ...
1
vote
2
answers
52
views
why ng-view doesn't display anything in my angularjs code
I'm new to AngularJS and I tried creating a sample login page and I tried routing to other page on successful login but nothing shows up in ng-view and my code has no error. What could be the problem?
...
0
votes
1
answer
104
views
AngularJS $routeParams is undefiend, but property is there
angular.module("newsApp",["ngRoute"])
.config($routeProvider=>{
$routeProvider.when("/edit",{
templateUrl : "views/addNewsView.html"
});
$routeProvider.when("/newsList",{
...
0
votes
1
answer
57
views
redirection to profile page as soon as registration is successful
Not getting redirected to login page my profile page is an html and main is the login page. I tried redirecting it to both the pages but it keeps going to the catch block as soon as a relocation is ...
28
votes
3
answers
92k
views
Angular 5 - redirect page to homepage on browser refresh
Currently, when I refresh a page from a route like
http://localhost:4200/feedback
it stays on the same route. But I want the route to redirect to
http://localhost:4200
I saw people have asked ...
1
vote
0
answers
135
views
get clean URL from UI routing and achieve share functionality
i need a clean URL for my angular JS project. And i am using ui-Routing(nested routing).
app.config(function($routeProvider,$stateProvider,$urlRouterProvider) {
//State routing
$urlRouterProvider....
0
votes
1
answer
567
views
Click on one div and make Angular template open in another
I want to be able to click on the anchor in the #leftDiv and make the UI router template open in the #rightDiv. So, when I click on Hello Plunker 1 in the #leftDiv, I want peopleOne.html to open in ...
0
votes
0
answers
56
views
Template is not displayed for the route parameter Angularjs 1.4.7
when i try to route using route parameter, partial templates does not get loaded(and no error is displayed).But if i hard code the url in config file, it works. i am using angular 1.4.7 version.
...
1
vote
1
answer
56
views
Angular js ngRoute is not working?
Hi I'm learning angular js. I'm using angular 1.5.6 version. Here is my code
<!DOCTYPE HTML>
<html ng-app="NoteWrangler">
<head>
<link rel="stylesheet" type="text/...
1
vote
1
answer
68
views
angularjs ng-route. not work templateUrl
It does not work with the specified templateUrl: test.html but works if you specify the template: 'Hello '
WORK
app.config(function($routeProvider){
$routeProvider
.when('/test', {
...
0
votes
0
answers
56
views
angular cannot load subpage
Body of my index page looks in the following way:
<body >
<div ng-view></div>
</body>
I config my app in this way:
app.config(function($stateProvider, $urlRouterProvider, ...
1
vote
0
answers
80
views
Using jQuery and external javascript libraries using jQuery inside of AngularJS Routing
So I want to create a SPA (single page application) using AngularJS' Routing with ng-route. The thing is that a few of the html pages use jQuery or load external JS files containing jQuery (libraries ...
0
votes
1
answer
46
views
Each time I load new link, it is redirected to my home link in angular js
I am not able to figure out why this behaviour occur. Each time I try to load new location by clicking anchors, it redirect to root location. I am builing my app in subdirectory http://localhost/myapp/...
0
votes
1
answer
58
views
Fire event when route is unchanged angularjs
I want to perform a reload of a route ONLY when there's not a route change, in other words reload a controller when a button that takes to its route is clicked. In my view in the ng-click directive I ...
0
votes
1
answer
49
views
Spring + AngularJs log in architecture
I build a simple app with an index.jsp (as a welcome page) and after a form-login submission directly to spring controller, i return either index.jsp or homePage.jsp (when user credentials are valid). ...
1
vote
0
answers
178
views
Angularjs - Can't access url with parameter
I have the following code for routing to a survey. When I access it from another partial in my angular application like this
'../fill/' +$scope.fill[i].id;
which results in this url 'http://localhost:...