Skip to content

loop in chrome with ui.router #2282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Nfrancop opened this issue Oct 3, 2015 · 4 comments
Closed

loop in chrome with ui.router #2282

Nfrancop opened this issue Oct 3, 2015 · 4 comments

Comments

@Nfrancop
Copy link

Nfrancop commented Oct 3, 2015

I am total beginner in Development angular . I'm trying to use ui.router with angularAmd .
The program has a problem, when executed this state in an infinite loop when I run it on google chrome and not on safari.
The program is infinitely reading the status dashboard . the other states are not recognized .
source code attached .

define([
    'angularAMD',
    'angular-ui-router'
], function (angularAMD) {
    'use strict';
    var app = angular.module("webapp", ['ui.router']);
    app.config(function ($stateProvider, $urlRouterProvider) {

        $stateProvider
               .state('dashboard',angularAMD.route({
                    url: '/dashboard',
                    templateUrl: '../modules/dashboard/dashBoard_view.html',
                    controller: 'dashBoardController',
                    controllerUrl: '../modules/dashboard/DashBoardCtl'}))            
               .state('home',angularAMD.route({
                    url: '/home',
                    templateUrl: 'views/home_view.html',
                    controller: 'homeController',
                    controllerUrl: 'controllers/home'}))
               .state('login',angularAMD.route({
                    url: '/login',
                    templateUrl: 'views/login_view.html',
                    controller: 'aboutController',
                    controllerUrl: 'controllers/about'}))
               .state('municipios',angularAMD.route({
                    url: '/municipios',
                    templateUrl: '../modules/maestras/municipios_view.html',
                    controller: 'municipioController',
                    controllerUrl: '../modules/maestras/municipio'}))    
               .state('programas',angularAMD.route({
                    url: '/programas',
                    templateUrl: '../modules/maestras/programas_view.html',
                    controller: 'programaController',
                    controllerUrl: '../modules/maestras/programa'}))  
               .state('grupoetareo',angularAMD.route({
                    url: '/grupoetareo',
                    templateUrl: '../modules/maestras/grupoetareo_view.html',
                    controller: 'grupoetareoController',
                    controllerUrl: '../modules/maestras/grupoetareo'}));

               $urlRouterProvider.otherwise("/dashboard");

    });
    angularAMD.bootstrap(app,false,document.getElementById('mainView'));
    return app;
});
@eddiemonge
Copy link
Contributor

Try setting a state with a url of '/'. Might be related to #2238

@eddiemonge
Copy link
Contributor

closing due to inactivity

@Nfrancop
Copy link
Author

I apologize for the delay in responding.
recomnedación have dealt with the fact that you gave and the eternal cycle has been corrected, but now the options menu of the page does not respond to user actions and the URL that displays the page is always in /

@eddiemonge
Copy link
Contributor

Do you have a link to the site or a plnkr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants