Most voted "router" questions
23 questions
Sort by count of
-
2
votes1
answer37
viewsComponent is printed 2 times in browser
Good guys, I’m developing an app with angular2 final version using routes. I created some files and then came across a problem of routes. My Component Home is printed 2 times in the browser. In the…
-
1
votes0
answers81
viewsRouter authentication
I’m trying to get into my Dlink router using C++ and I’m having problems with the login function! I cannot interact with login and password correctly! Sometimes this error or the code appears .html…
-
1
votes2
answers65
viewsExpress JS Routing
I am new to using Express JS and would like to make a direction according to the session created, IE, according to the user profile, the application has an initial route "audit" and will have 2 user…
-
1
votes1
answer8903
viewsUncaught (in Promise): Error: Cannot match any Routes. URL Segment:
I am getting the following error when I try to open a new form via [routerLink]: error_handler.js:54 EXCEPTION: Uncaught (in promise): Error: Cannot match any routes. URL Segment:…
-
1
votes0
answers77
viewsSharing routes on express
I’m trying to make a generic controller that will provide the basic crud routes, the idea is to extend this controller and be able to add some custom routes that are only inherent in that class.…
-
1
votes1
answer67
viewsDifficulties to find() in the schema/model Mongoose with req.params.
As the title says, I’m having trouble making a find() customized in Node model/schema, which links with Mongoose. My file correspondencia.js (model) below: var mongoose = require('mongoose'); var…
-
1
votes1
answer149
viewsWhat is the function of daughter routes at the angle?
Does the angular daughter route function serve only to render the daughter route component on the parent route component? Because I wanted to do the exact opposite. I would like when I go from the…
-
1
votes0
answers46
viewsVue router - problem with dynamic links
So, I am developing an application with Node and Vue, and I came up with a problem when generating dynamic links: In my backend I have a getBeerByStyle function (which works correctly). On my front,…
-
0
votes3
answers485
viewsRouting problem after final build in angular 2
After generating a final build in angular 2 ng build --prod I was able to put it on any server (Nginx/Tomcat/others...) normally, the problem happens that the routing does not work using the tag…
-
0
votes1
answer1436
viewsHow to parameterize a route in the Vue?
I’m using the vue/router to make a spa, and I’m having difficulty sending the id of a particular product by the url... I’m doing so on the link: <router-link…
-
0
votes1
answer40
viewsHow to limit subscribe to just one loop
I need to display an Alert every time my main Component changes route, so I created the following script in my AppComponent: constructor(private router: Router) { router.events.subscribe((val) =>…
-
0
votes1
answer1118
viewsReactjs Private Routes and React Router
You can implement private routes by receiving a JWT token in the header and body information in Reactjs with React Router?
-
0
votes1
answer1710
viewsProblem with more than two router-outlet in the app
[...] <header> <a routerLink="/lista-empresa" href="javascript:;">Empresa</a> </header> [...] <main> <router-outlet name="conteudo"></router-outlet>…
-
0
votes1
answer147
viewsDynamic mounted Angular 5 track
I have a dynamic menu mount at the angle. The setup is done as follows: <ul class="pcoded-item pcoded-left-item" item-border="none" item-border-style="solid" subitem-border="solid" *ngFor="let…
-
0
votes1
answer782
viewsAngular 7 - Open imported component in another module
I’m having a question of how to call a component that is imported into another module. The situation is as follows: I have the profile component, where I list the company profiles. Each profile has…
-
0
votes1
answer901
viewsHow to update data when changing Angular component
Basically my data is updated, but when I go to another component that shows this data, they are still outdated. I have to go to another component and come back again to update them. I tried to use…
-
0
votes1
answer1262
viewsERROR Error: Uncaught (in Promise): Error: Cannot match any Routes
I’m getting the following error when I try to edit the entered information [routerLink]: ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment:…
-
0
votes0
answers56
viewsSidebar renders multiple components
I have a Dashboard component, inside it I have a sidebar, which has the effect of changing the components that will be rendered on the screen, the 4 components that can be loaded, are at the bottom…
-
0
votes0
answers9
viewsJava Cling Port Redirection
Hello, I am trying to do port forwarding on my router automatically. For this, I am using the Cling 2.1.2 in Java. My code: package teste_cling; import java.net.ServerSocket; import java.net.Socket;…
-
-1
votes1
answer61
viewsSpring Boot Map Static Files (React)
My question is, how do I map static files, for example in Nodejs using Express, I can: app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, '../build', 'index.html')); }); So all…
-
-1
votes1
answer636
viewsOpen a port for external users to connect to
Hello, I made an example code in Node Js with express to open a virtual server, as shown below: const express = require('express') const app = express() const port = 3000 app.get('/', (req, res)…
-
-1
votes1
answer306
viewsProblems with this.router.navigate
Hello, my problem is this, I need to leave the dynamic whenever I play a different value in navigation, this is my code: editarForm() { const valor = ('X'); this.router.navigate(['/' + valor +…
-
-2
votes1
answer55
viewsHow do I "capture" the full route of an http call with express router?
I’m using the express.router nesting my route into several "router.use()". It is possible to take the final route via console? ex: const routes = Router(); const v1Router = Router(); const…