Most voted "angular-routes" questions
73 questions
Sort by count of
-
8
votes2
answers7334
viewsHow to redirect page in Angular?
After finishing the data update, I want the system to redirect the user to another page. I am using ui-router and I was told to use $state.go. But how do I use this command? Follows my code:…
-
5
votes2
answers1057
viewsAngular route link does not work on bootstrap
Person I’m having problem in the menu. The links made in Bootstrap are not bringing my angular routes. If I put the command in the navigation bar goes well. I’ve researched several things and…
-
3
votes1
answer150
viewsMatch a route with "localhost:4200/test-(dynamic parameter)" at Angular 7
Summary of the problem: It is one of those friendly URL’s that will be sent and within the parentheses will come next to the airport of the city, I need the route to be activated when it comes with…
-
2
votes1
answer660
viewsUi-route More than one view
Hello, I work with angular, and I’m using UI-ROUTE I’m trying to put two views on the same page and n with you. Here’s how I want the views to appear: When I click on "My registration data" it is…
angularjs angularjs-directives angularjs-scope angular-routes ui-routerasked 8 years, 6 months ago Biellx 461 -
2
votes1
answer133
viewsInjecting $state (ui-router) into $http Interceptor is causing circular dependency error, how to resolve?
What I need: I need when http request returns error 401 or 403 the user is redirected to login screen. Problem: The problem happens when I inject $state into my Factory, causes circular dependency…
-
2
votes0
answers51
viewsAngular 2 bug in the url after auto-Compile
Every time my Angular application auto compiles, the url is never restarted but my application goes back to the homepage the same way. So if I’m in the following URL:…
-
2
votes1
answer590
viewsAngular 7 Child Routes import Component using modules
I’m trying to set some daughter routes in my angular application 7 but they don’t work, I have the following scenario: I own a base-home.component and a home.component, I encapsulated the two…
-
2
votes2
answers1648
viewsAngular error: Staticinjectorerror(Appmodule) for Activatedroute
It’s a problem when I ask my Activated route, I already have my application pass the ID properly to the URL and the mapping already includes the Routermodule.Forroot() on the routes. App module:…
-
1
votes2
answers211
viewsHow to create an abstract route with global controller for your children in Angularjs
I am creating an application where I will create something similar to a "Wizzard" windows Forms and for this I am using a routing as follows: .state("vendaOrcamento", { url: "/vendaOrcamento",…
-
1
votes0
answers151
viewsReturning daughter routes in an abstract view in Angular JS
I am making a directive to create a Wizzard system, where the navigation of this Wizzard will depend on the number of routes that is set on a parent route (Abstract). I need to know if there’s any…
-
1
votes0
answers74
viewsManipulating views within an abstract route in Angularjs
I am creating an application that uses as backend o Code Igniter and for the frontend I intend to use the Angularjs. My problem is that I am not able to understand how I will insert new modules…
-
1
votes1
answer1704
viewsHow to get the current Browser URL with PHP?
For example, I have the following URL generated with ngRoute of AngularJS: https://www.projeto.com/edit/25, 25 is the ID, I need to get this ID in PHP. In researches, I found the following solution…
-
1
votes2
answers794
viewsChange page title with angular2
I am developing a site in angular2, as I do not have an in depth knowledge I am having difficulties in SEO, following the documentation I created a simple function public constructor(private…
-
1
votes0
answers172
viewsSingle Page Application in Webview of Android Studio
It is possible to use the angular Single page application in Webview with Android Studio?
angularjs android-studio webview angular-routes single-page-applicationasked 7 years, 3 months ago Aderbal 119 -
1
votes0
answers388
viewsRendering error with angular router 2
I’m studying Angular 2 and I came across a problem in the application I’m doing as a study. I decided to create a Coremodule and in it create a Sidebar(menu) component with the links for navigation…
-
1
votes1
answer205
viewsHow to recover data from Angular Route component?
I saw in the documentation Angular that it is possible to recover data stored in the property date (receiving an object) from a route. I have, in this case an application with the following routes:…
-
1
votes1
answer3148
viewsHow to use components exported from other modules at Angular 2
I’m starting to use Angular 2 and I’m having trouble accessing an existing component in a module I created. When opening the application, route root should be directed to the module IndexModule…
-
1
votes0
answers180
viewsRoutes - Angular 2
I will use an example of an admin panel. At angular 1 I had the $stateProvider.state() that inside it I could set up an internal name and the url that would be accessed, so I would have, for…
-
1
votes2
answers434
viewsRoutes at Angular 1.6
I’m an angled beginner. My routes don’t load in ng-view. When I click on the link my url looks like this http://localhost:56845/Index.html#Add and nothing happens. No error is displayed on console.…
-
1
votes2
answers490
viewsProblem with angular 5x routes
I created a new module in my application with my routes and made the required inports in my app.modules, but in the browser console an error which I could not solve and also found no answer for the…
-
1
votes1
answer779
viewsAngular 5 problems with routes
Guys I have my normal and simple route app.routing.ts import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LoginComponent } from…
-
1
votes1
answer4763
viewsHow to Get Another Component Variable
I have the following situation: utils-Nav-user.component.html <nav class="navbar fixed-bottom navbar-expand-lg navbar-dark bg-dark"> <a class="navbar-brand text-white">ESC - Sistema De…
angular angularjs-directives angularjs-scope angular-routesasked 6 years, 9 months ago Ederson Coelho 143 -
1
votes0
answers65
viewsAngular 6 - Can Deactivate Guard is not working
I’m having trouble getting Can Deactivate to work on my app. In the form.component.html file I have the following code: <div class="form-group"> <label for="quoteType">Quote…
-
1
votes0
answers75
viewsImport an angular design within another angular design
I would like to know if it is possible for me to import an entire project in angular in another project, exemplifying let’s say I have a financial project and a stock project both ready and running…
-
1
votes1
answer1182
viewsAngular routes
I’m studying routes at the angle and following a tutorial from their website. They ask to create an app-routing.module with the ng generate module app-routing --flat --module=app in cmd, my code…
-
1
votes1
answer1083
viewsAngular 7 Router appears the page I want but does not remove the previous page and is both at the same time
I set my files all correctly I think, but when I click on the button This is the router configuration page I put the signup in the array app-route.module.ts import { NgModule } from '@angular/core';…
-
1
votes2
answers169
viewsCan you pass a specific route determined by an id ? (Angular Routes)
Ex : I want to register(I’m working with Tadata) My route today {path:entity/:identity/registration} Where the identity is replaced dynamically when I click, for example: in the database register…
-
0
votes1
answer390
viewsRoutes Laravel / Angular $routeProvider
I have something like this in my app.js: app.config( function( $routeProvider ) { $routeProvider.when('evento/:id/:caminho', { templateUrl: 'views/evento.html', controller:…
-
0
votes0
answers908
viewsUsing ng-view and routeProvider does not render partial html
I’m starting at Angularjs and I can’t make the routes with $routeProvider work at all. I’ve searched several solution attempts on google and none of them solved my problem. Only partial is not…
-
0
votes1
answer176
viewsNode.js routes with Angular.js
I am starting now in development with Ode and came to me the following doubt: much is said about the mean stack, but how to map routes using Node and angular? Which one will I use to make the…
-
0
votes1
answer127
viewsOtherwise with redirectTo to another url that is not part of the Single page application
For example, on the routes below: app.config(function($routeProvider){ $routeProvider.when('/dashboard', { templateUrl: "../views/dashboard.html", controller : "dashboardCtrl" }).when('/cadastro', {…
-
0
votes2
answers405
viewsAngular $routeProvider using <div ng-view></div>
Galley, I am following the book ng-book of angular, and to make a SPA, I am using the following structure: - app - controller controller.js - js main.js - node_modules (com os arquivos de jquery,…
-
0
votes1
answer325
viewsIs it a problem to insert another controller into Angularjs?
I have the following question: I am building a page, where I have a controller called PageController, responsible for rendering the menu and page title. However, within the div where I use…
-
0
votes0
answers35
viewsAngular No Heroku Accesses URL Typing
I would like to ask a question, I am making a soft with Angular 5 and Restful Webservice when I test the location I can access the URL normally directly when I try to do this with the application in…
angularjs-directives angularjs-scope angular-routes angularasked 6 years, 9 months ago Ederson Coelho 143 -
0
votes1
answer187
viewsRoute Problem at Angular accessed directly
I published the Angular project on a machine with IIS, but when I try to access the link with a route directly shows error 404, example "http://meusite.com/appiis/login" but access the url…
-
0
votes1
answer1003
views404 error while updating page - Angular 4
Guys is the following, I started a new project in Angular 4 and it works perfectly on the localhost. I went up to the server (Tomcat) and I was testing when searching the url…
-
0
votes1
answer161
viewsHow to get out of an Angularjs SPA (Single Page Application)
I have following code: var app = angular.module("appSystem", ['ngRoute']); app.config(function ($routeProvider, $locationProvider) { $routeProvider .when("/teste", {templateUrl: './view/teste.html',…
-
0
votes4
answers993
viewsHow to pass/receive data to components via routing
In my app-routing-module I will reuse the same component for four different routes, but I need to know a way to differentiate these components. Currently my app-routing passes a title property on…
-
0
votes0
answers29
viewsShare image dynamically on social networks Angular 11
I am using the plugin/framework Addthis to share on social networks, and I want to change the image dynamically based on different content, I came to make the implementation of updateTag, but when I…
-
0
votes1
answer111
viewsProblems with angular heading 2 and Laravel 5
I have a system in Laravel 5.3, and I’m putting in Angular 2 to take care of the front end. I have several modules, ex: companies. The route /companies will lead to the listing of companies thus…
-
0
votes1
answer60
viewsAngularjs single route Parameters
Good guys, I am trying to create a simple parameter on my route in the Angularjs. What I want is for my job page every time I click on an article to open the information in that article on another…
-
0
votes1
answer154
viewsAngular Error 2 Router ( Cannot find Primary outlet to load 'Welcomecomponent' )
Good morning, I have the following error in my ANGULAR-2 application EXCEPTION: Uncaught (in Omise): Error: Cannot find Primary outlet to load 'Welcomecomponent'…
-
0
votes0
answers49
viewsAngularjs route
I have a web application in spring boot and use Angular on the routes. Everything is working, but when I update the page, if not on home, presents an error and when I change something in some HTML…
-
0
votes0
answers156
viewsHow to disable angular route system
I have a project developed in Angular 1, I am using routeProvider and locationProvider. But now that the project is "ready", I need to disable the route system, IE, when the URL is changed, when I…
-
0
votes2
answers4281
viewsChange the value of a variable through another component [ANGULAR 2]
I have a boolean variable declared inside a window component, this variable serves to print/hide a link that is in the header. I want to,change the value of that variable from a second component, in…
-
0
votes1
answer85
viewsProblem with html5Mode angular
I set up my app Angular using #! in the links url, I am now trying to use the html5Mode but it’s not working. The folder structure of my application looks like this: At the root is the index.html, a…
-
0
votes1
answer180
viewsRoutes - Angularjs
I’m using routes from angularjs 1.6 and I’m having problems with the java connection filter part. When I log into my system and access a page of my system, the filter works normally, but when I open…
-
0
votes1
answer55
viewsAngularjs problems with view routing
I am developing a web application with Angularjs 1.6, and I am encountering an error only when I open index.html directly from the page. However, when running directly from the IDE it works…
-
0
votes1
answer161
viewsUrl loads characters ! #%2F and does not load the correct view in Angular
I am at my root index.html and loads normal, but when I type the # more the / and a view for example the view tests the url: index.html#! #%2Fview-test. I would like to know the pq! Follow the code…
-
0
votes1
answer176
viewsngRoute breaking when accessing a specific url
Hello! I have a problem in ngRoute that I can not understand the reason. Basically, when I try to access a route-specific URL from outside the application (not from an application link), I get the…