Angular directive for create modal