Skip to content

Ui router url changed but views not are loaded for sometime not always. #2630

@Jeevanandanj

Description

@Jeevanandanj

Hi,

I am using AngularJS v1.3.17 and the latest version of ui router.

I've searched for this but i could not find solution for that.

I've migrated from ng route to ui router.

After implementing named nested view, I got the problem like, url changed but views are not loaded.
I've implemented like the following. Before implement the sub view's sub view, I didn't face like this.,

I've tried to log to check whether there is any error, but found no exception
$rootScope.$on("$stateChangeError", console.log.bind(console));

But I didn't find anything.

If I refresh browser and work, there is no issues for sometimes.

$stateChangeStart event has been triggered.
When ui router works without error, i can catch the flow at interceptor.
when ui router is not loading, stateChangeStart event only has been triggered but i can't get the flow at the interceptor.

I can't figure out this problem. 👎

.state('home', {
url: '/home',
*--------------------------------------------
state('home.Page1', {
url: '^/page1',
*--------------------------------------------
.state('home.Page1.Subs', {
authenticate: true,
views: {
'Page1Master@': {
templateUrl: 'App/Page1/_Page1Master.html?v=' + version,
controller: 'Page1MasterController',
controllerAs: 'vm',
}
}
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions