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.

make ng-switch-when more powerful #3410

Closed
@lanterndev

Description

@lanterndev

Programming languages with switch statements allow associating several cases with the same block, e.g.:

switch (value) {
case 0:
  foo();
  break;
case 1: // fall through
case 2: // fall through
case 3:
  bar();
  break;
}

It would be useful if ng-switch-when similarly allowed matching on multiple values, e.g.

<div ng-switch-on="value">
  <div ng-switch-when="foo">foo</div>
  <div ng-switch-when="/bar|baz/">bar or baz</div>
</div>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions