Skip to content

$urlMatcherFactoryProvider.type - decoded null parameter values are interpreted as undefined #3121

@tmcgann

Description

@tmcgann

I created a type of nullable int parameter type (int?) where all non-integer values are treates as null. However, when parameter values are decoded and null is returned for non-integer values, transition.params() and $transition$.params() show parameters as undefined when I would expect them to be null.

Is there a bug with the way null parameter values are being interpreted when decoded? Why do I keep seeing undefined instead of null even when null is returned by the decoder?

Plunker: http://plnkr.co/edit/hk6vkZOIJ1R1glxXdXLm?p=preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions