change ngFoundationModal restrict to A and add closeModal directive

fix : There was a foundation rendering problem, with ngFoundationModal restrict E