Add bootstrap modal config from directive element