Skip to content

Need way to make uiSref optional #244

@CanyonJ

Description

@CanyonJ

We have a generic component that contains <a uiSref={{targetState}}>. How do I make uiSref optional so that if targetState isn't supplied, clicking on the list row won't cause an error? tried something like [attr.uiSref]=targetState, didn't work when targetState was defined as a valid state string.

It would be nice if null, undefined, or empty string did nothing on a click instead of calling state.go.

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