Answer the question
In order to leave comments, you need to log in
Why is the State ui-router reset on page reload?
Hello everyone
, I'm terribly dumb. I can’t solve the problem all evening
the application is written in angular + php
Routing took over angular
doing the admin panel.
Here is the file in which the routing is configured purely for the admin
panel Login to the admin panel and the panel itself
angular.module('adminAtom', ['ui.router'])
.config(function($stateProvider, $locationProvider, $httpProvider){
$httpProvider.defaults.headers.delete = { 'Content-Type' : 'application/json' };
$stateProvider
.state('adminPanel', {
url: '/admin/panel',
templateUrl: 'admin/views/goods.html',
controller: 'goodsCtrl',
controllerAs: 'goods'
})
.state('adminLogin', {
url: '/admin/',
templateUrl: 'admin/views/login.html',
controller: 'loginCtrl',
controllerAs: 'login'
})
$locationProvider.html5Mode(true);
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question