add parent error class option  + custom directive demo