Restricting custom directive

Attribute:
Element:
Class: