Questions tagged as 'ui-router'

1
answer

Ui.Router loads / imports JS files, but buttons lose functionality

The template SmartAdmin uses lazyScript to import the JS files, it works, everything is fine, but when I navigate between the pages the Ui buttons, to work. angular.module('app.analytics', ['ui.router']) .config(function($stateProv...
asked by 06.09.2017 / 14:55
1
answer

Multiple views with uiRouter

Hello, I'm setting up a small project for learning and I'm trying to use uiRouter, but I'm having trouble reproducing what I have in mind. Structure: meuApp |-css |-img |-js |\-app.js ||-config.js |-lib |\-angular |-views |\-dashboard.html...
asked by 25.06.2016 / 17:55
0
answers

Problem with ui-router in angularjs [closed]

I'm in trouble when I'm trying to make 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 the code APP.js. .state('highways.id', {...
asked by 14.12.2015 / 17:29
1
answer

Problem with ui-sref

I'm having trouble doing a POST using ui-sref. I need to call a controller by passing an ID where it will return me the data recorded in the database. It works fine when I use the route, but when I use ui.route I'm having a problem. With ngRo...
asked by 26.10.2015 / 18:22
1
answer

Loop problem with $ stateChangeStart

Hello, I'm creating an authentication and verifying system with Angularjs, I'm using stateChangeStart to validate the permissions in view. Only when I use $ state.go ('app.home'); it goes into infinite loop. My code is as follows: $roo...
asked by 31.03.2016 / 21:20
0
answers

I'm having trouble using ui.router from angularJS

Codefrommyindex-release.html        <title>DiaristaFácil</title><!--AngularJS--><scriptsrc="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script> <!-- Routes --> <script src="//un...
asked by 13.12.2018 / 20:44
1
answer

Remove the login menu? (AngularJS and UI router)

Good afternoon, I'm participating in a project and I'm using AngularJS and UI-router, much of it already done, but I'm not sure how I can get the login menu, I'd like it to appear only after authentication. If anyone can give a force there, t...
asked by 30.01.2018 / 19:05
1
answer

Route 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, it remains on the login page. This route is accessed when the user logs in to the system, in case it is the home page afte...
asked by 29.08.2017 / 01:21
1
answer

Redirect to the homepage after logged in - AngularJS Ui Router

I'm using AngularJS 1.6.4 with ui-router and I need to redirect the user to the main.html page, in case the login is successful. My routes are configured like this: var app = angular.module('odontoSystem', ['ui.router']); app.config(functi...
asked by 12.08.2017 / 13:54
0
answers

I can not display object data in the view that returns from $ http.get

I am getting data from an api via $ http request. This is my controller. angular.module('supernovaWebApp',['ui.router']) .controller('professoresCtrl', ['$scope', '$http', function($scope, $http){ $http.get("http://localhost:...
asked by 13.01.2017 / 02:23