Trying to re-write modal as directive