From 975e6fbf30c31882d6b4581f21f34eb74177269a Mon Sep 17 00:00:00 2001 From: An Phan Date: Sat, 7 Oct 2017 14:40:43 +0100 Subject: [PATCH] Replace `true` with truthy --- src/v2/guide/class-and-style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/class-and-style.md b/src/v2/guide/class-and-style.md index bda43c59ee..5db43bbab3 100644 --- a/src/v2/guide/class-and-style.md +++ b/src/v2/guide/class-and-style.md @@ -103,7 +103,7 @@ If you would like to also toggle a class in the list conditionally, you can do i
``` -This will always apply `errorClass`, but will only apply `activeClass` when `isActive` is `true`. +This will always apply `errorClass`, but will only apply `activeClass` when `isActive` is truthy. However, this can be a bit verbose if you have multiple conditional classes. That's why it's also possible to use the object syntax inside array syntax: