An AngularJS directive and service for the foundation modal