Most voted "ui-router" questions
20 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:…
-
3
votes1
answer963
viewsUi-Routes get logged in user id
I’m using ANGULARJS/UI-ROUTES, and currently my application after logging only gets the email, I need to also come the ID of the logged-in user. The question of the routes I can, the problem is that…
angularjs angularjs-directives angularjs-scope angular-module ui-routerasked 8 years, 5 months ago Biellx 461 -
3
votes4
answers995
viewsUser permission - Angularjs
I have permission levels for users on my system: admin user and basic user. I have a page that only administrator users can access. I put an ng-if="isAdmin()" in the menu to hide, if not…
-
2
votes1
answer305
viewsSPA with ui Router Angular JS files very large
Talk guys. This is a conceptual doubt. Recently I started to develop a SPA application (Single Page Application) making use of the partial rendering concept, using ui Router (more information about…
-
2
votes1
answer58
viewsUi-router for systems with many modules
I came across a problem I have a Controller called Ordercontroller which is in two modules, Sales and Supply. When I route to the screen that will use this controller how can I define which of the…
-
2
votes1
answer165
viewsAngularjs ui-router application has /#! / in the URL
I have an app with ui.router working normally, but a second application has a "!" after the "#" Ex: http://localhost:8090/dev/#!/home Why does that happen? The normal should be:…
-
2
votes1
answer203
viewsui-router does not render the view contained in an ng-template
I’m taking an online course on Maean and I’m having trouble rendering a view. To view is inserted inside a tag Script and specified as a ng-template and configured within the ui-router. Even…
-
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, 5 months ago Biellx 461 -
2
votes1
answer59
viewsAngular ui router plus PHP
Currently I have an array in php that I convert to JSON using json_encode json and generated smoothly. $array = array('a' => 'Olá mundo', 'b' => 'Olá Marte'); $array = json_encode(array);…
-
2
votes1
answer46
viewsProblem with howling
personal I’m having a problem related to angular router ui always when the use cannot make it work, I copy the code exactly the way it is in the git of uiRouter and it does not work, because the…
-
1
votes0
answers23
viewsProblem with ui-router in Angularjs
I’m in Trouble when I’m trying to make a GET on the API to get information. The problem is that the webserver is not Calling the API. I must Fill in the ng -model field named. The following part of…
-
1
votes1
answer60
viewsMultiple views with uiRouter
Hello, I’m putting together a small project for learning and I’m trying to use uiRouter, but I’m having a hard time reproducing what I have in mind. Structure: meuApp |-css |-img |-js |\-app.js…
-
1
votes1
answer49
viewsUi.Router loads/imports JS files, but buttons lose functionality
The template Smartadmin uses lazyScript to import the JS files, it works, it matters all right, but when I navigate between the pages the Ui buttons, stop working. angular.module('app.analytics',…
-
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';…
-
0
votes1
answer98
viewsProblem with ui-sref
I’m having trouble making a POST using ui-sref. I need to call a controller passing an ID where it will return me the recorded data in the database. Works great when using route, but when I use…
-
0
votes1
answer87
viewsLoop problem with $stateChangeStart
Hello person I am creating an authentication system and check levels with Angularjs, I am using stateChangeStart to validate permissions in view. Only when I use $state.go('app.home'); it goes into…
-
0
votes0
answers374
viewsI cannot view object data returning from $http.get in the view
I’m getting data from an api via $http request. This is my controller. angular.module('supernovaWebApp',['ui.router']) .controller('professoresCtrl', ['$scope', '$http', function($scope, $http){…
-
0
votes1
answer32
viewsRoute not working with ui-router - Angularjs 1.6
I have the /main route, which when prompted redirects to an html page. The url is correct, but is not loading anything, remains on the login page. This route is accessed when the user logs in to the…
-
0
votes1
answer128
viewsRemove login menu? (Angularjs and UI router)
Good afternoon, I am participating in a project and I am using Angularjs and UI-router, much of it is already done, but I do not know how to remove the login menu, I would like it to appear only…
-
-1
votes1
answer61
viewsAngularjs and ui-router: loading routes
I’m developing an application with Angujarjs and ui-router and I’m having trouble loading routes. To facilitate the explanation I will delete parts of the code. My route file looks like this:…