Questions tagged [angular-route-segment]

A lightweight extension for AngularJS $route service which supports tree-like nested views and routes, and advanced flow handling.

53 questions
1
vote
2 answers

Back button event does not fire Angular

I am trying to redirect the user to a particular url on the click of back button in browser, and here is the code constructor(private router: Router,private location: PlatformLocation) { let eventUrl =…
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
1
vote
1 answer

Angular App Route not working

Currently I have a AngularJS Webapp that works exactly like I want it to. There is a plus sign button/link i've create. I want the user to be able to click on that button/link and be brought to another similar page. It will have the exact layout and…
Jasmine D
  • 75
  • 1
  • 8
1
vote
1 answer

Issue with angularJS npm packages and dependencies

This is the error I get angular.js:38 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.4/$injector/modulerr?p0=myApp&p1=Error%3A%2…arJS%2Fangular-my-app%2Fnode_modules%2Fangular%2Fangular.min.js%3A22%3A179) at…
1
vote
1 answer

I can't use third party js with angular js and ASP.NET MVC

Hello I am creating application with ASP.NET MVC and Angular js. Everything is running fine but when I want to use any third party js for angular js it is not allowing to do ... I have created three js files. 1) app.js var app; (function () { …
3 rules
  • 1,359
  • 3
  • 26
  • 54
1
vote
4 answers

How to redirect to other page after successful login in angularjs?

Hi I am developing one application in angularjs as front end and web api2 as backend. I am new to both angular and web api. I have completed login page in angularjs. As soon as my login successful i want to go to page called Index.cshtml located at…
Niranjan Godbole
  • 2,135
  • 7
  • 43
  • 90
1
vote
1 answer

AngularJs - Route by exact match only is possible?

In my app, I would like to match the url exactly. in case the url doesn't match exactly, I require to redirect to defualt as '`. at present I require to test: localhost:3000/sn=1234 or localhost:3000/sn=abc123 or localhost:3000/sn=abc123 that means,…
3gwebtrain
  • 14,640
  • 25
  • 121
  • 247
1
vote
1 answer

toggling class name based on route changes using angular-route

have 3 routes containing 3 forms Im trying to set bootstrap active class on current tab based on the current route in angular.I used angular route module. How can I achieve this. I m attaching the js code please check and help…
1
vote
2 answers

Angular: [$injector:modulerr] Failed to instantiate module

I've been trying to set up basic AngularJS functionality for a project but have been hitting a brick wall when it comes to including angular-route. Both are version 1.4.8. I'm currently using gulp-require to concatenate my JS, here's my main…
1
vote
0 answers

Django native urls and Angular routes

I have issue with django routes. My url patterns: urlpatterns = patterns('', # user account related users url(r'^accounts/', include('userena.urls')), # admin url(r'^admin/', include(admin.site.urls)), url(r'^api/',…
Sasha Odegov
  • 183
  • 1
  • 11
1
vote
2 answers

Can anyone identify what is going on with this bower install of angular-route?

bower not-cached git://github.com/angular/bower-angular-route.git#1.4.6 bower resolve git://github.com/angular/bower-angular-route.git#1.4.6 bower ENOTDIR ENOTDIR: not a directory, mkdir…
macaframa
  • 11
  • 3
1
vote
0 answers

nested views using angularjs

I am new to AngularJs. I have a requirement where I have to lookup for an IP Address search bar and then display the search results below while showing the search bar. Both the views should be loaded from a partial file. The search bar is one…
1
vote
2 answers

angular-route-segment: Find current location of routeSegmentProvider

I am trying to find current location of routeSegmentProvider while I am building my routes because one of them is not getting setup properly. Is there any way I can get my current location in the tree? Here is basically what I am trying to do... …
gwin003
  • 7,432
  • 5
  • 38
  • 59
0
votes
1 answer

Angular 12 Routing shows UTF-8 characters like '%2F', '%3F' in the URL and shows can not match any routes. URLSegment error

I have an Angular app which needs to show the homepage after login. When the app logs in correctly, the URL shown in the URL bar contains UTF-8 characters like '!', '%2F', '%3F' which on reload shows the error Error: Cannot match any routes. URL…
0
votes
1 answer

Angular router does not load the mine page with the PathParam

I'm studying about Angular and having some router troubles, because I'm trying to access one of the routes with a path parameter and having an error, the page doesn't load. The main page: The routed one: The app.module.ts file: import { NgModule }…
0
votes
1 answer

How to refresh the parent route and it's components when it is clicked again in Angular?

I have a Master-Detail container component with 2 presentational components master and detail. The user will click the link http://localhost:4200/master. The master component will retrieve the data from the server and display a list of items, and…
wonderful world
  • 10,969
  • 20
  • 97
  • 194