Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

multiple-when ng-switch needed #13648

Closed
Closed
@calidion

Description

@calidion

currently ng-switch only support single value,
but in most case, we need to control more value for one piece of html.
so a mulitple or/and for an ng-switch-when if needed.

<ANY ng-switch="expression">
  <ANY ng-switch-when="matchValue1 || matchValue2">...</ANY>
  <ANY ng-switch-or="matchValue1 || matchValue2">...</ANY>
  <ANY ng-switch-and="matchValue1 && matchValue2">...</ANY>
  <ANY ng-switch-when="matchValue2">...</ANY>
  <ANY ng-switch-default>...</ANY>
</ANY>

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