Angular directive for popbox