Update directive example to reflect API changes