A directive providing a switch component to hang boolean values.