Skip to content

Deprecation: control flow directive

Dylan Piercey edited this page Dec 4, 2018 · 1 revision

The inline control flow attributes (<div if(x)>, <div while(true)>, <div for(;true;)>) have been deprecated in favor of using their tag counterparts.

Here is an example of how you can migrate this (and hopefully illustrates why we are doing this)

<img class="large-image placeholder" src="https://via.placeholder.com/350x150" aria-describedby="my-fancy-component" if(input.show)/>

Should become

<if(input.show)>
  <img class="large-image placeholder" src="https://via.placeholder.com/350x150" aria-describedby="my-fancy-component"/>
</if>
You can’t perform that action at this time.