Instance of

bsInstanceof is a switch-like structural directive that branches based on the runtime class of a value. Each *bsInstanceofCase matches an instanceof check and exposes the narrowed instance to its template; *bsInstanceofDefault renders when no case matches.

Basic usage

  • a
  • c
  • No match
  • b