christopherthielen / ui-router-extras

THIS PROJECT IS NO LONGER MAINTAINED -- Extras for UI-Router for AngularJS. Sticky States (a.k.a. parallel states), Deep State Redirect (for tab-like navigation), Future States (async state definition)
http://christopherthielen.github.io/ui-router-extras/
MIT License
917 stars 211 forks source link

Modules not loading after updating ui-router and angular 1.3 to 1.5.5 #383

Open rohanbc opened 3 years ago

rohanbc commented 3 years ago

Hi @christopherthielen ,

We have upgraded angularjs 1.3 to 1.5.5 and upgraded ui router. We are using OC Lazy Loading using requirejs but modules is not hitting. In App.client.module we are using $locationChangeStart and stateChangeStart. Since stateChangeStart is depricated we are using transition.onstart(). Able to load html but unabe to load requireJs module. Whether I am facing issue in oclazyload or transion not able to conclude.

Please provide me your valuable suggestion.

    "@uirouter/angularjs": "^1.0.12",     "@uirouter/core": "^5.0.13",     "@uirouter/sticky-states": "^1.4.1",

Routes.js angular.module('routes').config(['$stateProvider', 'Constants',     function ($stateProvider, Constants) {         // Users state routing         $stateProvider.state(Constants.MODULES.users, {             url: '/user',             lazyModule: Constants.MODULES.users,             lazyTemplateUrl: 'user.client.view.html',             lazyFiles: 'userModule'

Module 'use strict';

define(['./controllers/authentication.client.controller',         './controllers/user.view.client.controller',         './controllers/user.edit.client.controller',         './services/users.client.service',         './filters/stringArray.client.filter',         '../modules/common/services/confirm.popup.service',         'angularUIGrid',         'ngFileUpload',         'ngFileUploadShim',         'appModule'],     function (authenticationController, userViewController, userEditController, userService, stringArrayFilter,confimPopupService) {         // Use Applicaion configuration module to register a new module         var userModule = ApplicationConfiguration.registerModule('users', ['ui.grid', 'ui.bootstrap','ngFileUpload']);         userModule.factory(userService[0], userService[1]);         userModule.controller(authenticationController[0], authenticationController[1]);         userModule.controller(userEditController[0], userEditController[1]);         userModule.controller(userViewController[0], userViewController[1]).filter(stringArrayFilter[0], stringArrayFilter[1]);         userModule.factory(confimPopupService[0], confimPopupService[1]);     });