al-css/al-class

Description

  • Attach/detach a class by condition
  • Input argument: specific kind of expression

Sample

<div al-css="active:menu==='main'"></div>
<div al-css="active:true, red:menu==='aux'"></div>
<div al-css="class1 class2 class3: condition1, class4 class5 class6: condition2"></div>

todo sample animated sample

al-css/al-class

Описание

  • Подключение/Отключение классов в зависимости от уловия
  • Входной параметр: список классов и уловий

Пример

<div al-css="active:menu==='main'"></div>
<div al-css="active:true, red:menu==='aux'"></div>
<div al-css="class1 class2 class3: condition1, class4 class5 class6: condition2"></div>

todo sample animated sample

comments powered by Disqus