Creating directive for constant setting