Questions tagged as 'angular-routes'

2
answers

How to redirect page in Angular?

After completing the data update, I want the system to redirect the user to another page. I am using ui-router and was instructed to use $ state.go. But how do I use this command? Follow my code: app.controller("AtualizarUsuarioController",...
asked by 11.01.2016 / 18:44
2
answers

Angled route link does not work in bootstrap

Person I'm having trouble on the menu. The links made in Bootstrap are not bringing my angular routes. If I put the command in the navigation bar is going well. I already researched several things and nothing works. If someone came up, please he...
asked by 12.02.2016 / 14:04
1
answer

Inject $ state (ui-router) into $ http interceptor is causing circular dependency error, how to solve?

What do I need: I need when the http request returns error 401 or 403 the user is redirected to login screen. Problem: The problem happens when I inject the $ state into my factory, it causes the circular dependency error:    Unca...
asked by 03.02.2017 / 12:04
1
answer

Ui-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: WhenIclickon"My cadastral data" it is for him to display on the right side the info of the...
asked by 01.06.2016 / 03:53
0
answers

Angular 2 bug in url after auto compile

Whenever my Angular app auto compiles, the url is never restarted but my app goes back to the home page anyway. So if I'm at the following URL: http://localhost:4200/alguma-url So I make some changes to the code, Angular 2 auto compiles to...
asked by 29.05.2017 / 19:13
2
answers

How 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 of windows forms and for this I am using a routing as follows: .state("vendaOrcamento", { url: "/vendaOrcamento", abstract:true, templateUrl: "templates/come...
asked by 11.09.2015 / 17:05
2
answers

No Angular Routes 1.6

I'm a beginner in angular. My routes do not load in ng-view. When I click on the link my url looks like this    link   and nothing happens. No error is displayed on the console. I use angle 1.6. test.js var MyApp = angular.modul...
asked by 18.04.2017 / 00:17
1
answer

Angular 5 route problems

I have my normal and simple route app.routing.ts import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LoginComponent } from '../login/login.component'; import { HomeComponent } from '../ho...
asked by 14.01.2018 / 17:16
2
answers

Problem with angled routes 5x

I created a new module in my application with my routes and made the necessary inports in my app.modules, but in the browser console there was an error which I could not solve and I also did not find any response for the 5x angle. The error t...
asked by 30.11.2017 / 01:10
2
answers

Change page title with angle2

I am developing a site in angular2, as I do not yet have an in-depth knowledge I am having difficulties in SEO, following the documentation I created a simple function public constructor(private titleService: Title ) { } public setTitle( new...
asked by 16.06.2017 / 19:02