Questions tagged as 'router'

1
answer

Component is printed 2 times in browser

Well guys, I'm developing an app with angular2 final version using routes. I created some files and then came across a route problem. My component Home is printed 2 times in the browser. IntheFirebugConsole: Follow the code...
asked by 21.09.2016 / 00:13
1
answer

Difficulties in doing find () in schema / model mongoose with req.params.field in $ get from http

As the title says, I'm having a hard time making a find() customized in the model / schema of the node, which links to the mongoose. My following correspondence.js file (model): var mongoose = require('mongoose'); var Correspo...
asked by 08.11.2017 / 13:43
0
answers

Sharing 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 inherent only to that class. Here's an example: export default class B...
asked by 03.07.2017 / 17:26
1
answer

Uncaught (in promise): Error: Can not match any routes. URL Segment:

I'm 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: 'usuario-cadastrar-dialog' Error: Cannot match any routes. URL...
asked by 18.04.2017 / 18:54
0
answers

Authentication router

I'm trying to get into my Dlink router using C ++ and I'm having trouble logging in! I can not interact with login and password correctly! Sometimes this error occurs or the code .html of the router page says that the username or...
asked by 16.10.2016 / 01:29
1
answer

How to limit subscribe in 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) => { alert(val); });...
asked by 20.11.2018 / 20:24
0
answers

pass array as parameter to query query, express

Well, I would like to basically pass an array through the url to the red.params of express.router, I tried to do it in some ways: router.get('/:[ids]?', function (req, res, next) { portfolioModel.deleteArray(req.params.array, function...
asked by 10.12.2018 / 18:28
1
answer

How to parameterize a route in the Vue?

I am using vue/router to make a spa, and I am having difficulty sending the id of a certain product through url ... I'm doing this in the link: <router-link :to="{name:'editar',params:{id:item.id}}">editar2</router-link>...
asked by 06.08.2018 / 21:38
1
answer

Non-Angular Rotation 5 dynamically mounted

I have a dynamic menu mount in the angle. The assembly is done as follows: <ul class="pcoded-item pcoded-left-item" item-border="none" item-border-style="solid" subitem-border="solid" *ngFor="let asideItem of asideItems.views"...
asked by 13.08.2018 / 13:48
0
answers

Stylize vue router-link visited!

I have a list of search results of the routes of my SPA brought through a v-for and I need that for the router-links accessed, have a style similar to a: visited and I can not do this with the css of the page. When accessing an item, when return...
asked by 03.04.2018 / 19:41