Skip to content

Controller is instantiated multiple times when using date parameter #2484

Closed
@bogdanalexe90

Description

@bogdanalexe90

Controller is instantiated multiple times when navigating to a state that uses a date parameter. If date parameter is optional controller is instantiated 3 times else twice.

This is my state definition:

.state('stateName', {
                url: '/{id:int}/{childId:int}?{date:date}',
                params: {
                    childId: null,
                    date: null
                },
                resolve: {
                    ...
                },
                controller: '...',
                templateUrl: '...'
            });

P.s: I'm using 0.2.17 version

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions