Skip to content

Support @ bindings when using 1.5 components #2708

Closed
@drummerboof

Description

@drummerboof

Currently, UI Router supports < and = parameters when routing using the component syntax. When the component contains a @ parameter binding, an error is thrown with the message TypeError: Cannot read property '1' of null

Plunkr showing the issue is here: http://embed.plnkr.co/mtNl3MgXrfTkv8NnrtqQ/ The error occurs can be seen in the console.

It seems to be an issue with the handling of the scope bindings in the ng1 viewsBuilder at https://github.com/angular-ui/ui-router/blob/1.0.0-alpha.4/src/ng1/viewsBuilder.ts#L74

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