Skip to content

Deprecation: paren params

Dylan Piercey edited this page Feb 15, 2019 · 3 revisions

Macro's syntax has changed to better align with the rest of the language. Specifically it now is consistent with the new tag params feature for providing values to body content.

Old:

<match-media({ portrait, landscape })
  portrait="(orientation: portrait)"
  landscape="(orientation: landscape)"
>

  <!-- Render based on portrait or landscape -->

</match-media>

New:

<match-media|{ portrait, landscape }|
  portrait="(orientation: portrait)"
  landscape="(orientation: landscape)"
>

  <!-- Render based on portrait or landscape -->

</match-media>
Clone this wiki locally