Skip to content

$state.go('/list', {aParam: null}) throws TypeError: Cannot read property 'toString' of null. #3197

Closed
@vovopap

Description

@vovopap

angular -v : 1.5.8
ui-router -v: 0.3.2

$stateProvider.state({
url: '/list?{aParam:int}',
......
});
$state.go('/list', {aParam: 13}) works
$state.go('/list', {aParam: undefined}) works
$state.go('/list', {aParam: null}) throws error

Is this expected behavior? If it is, could you direct me to docs or guides. If it is not, i would like to provide a plunker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions