converted code to show team logo popup from jquery to an angular directive