added the property `popoverTemplate` at component
added $apply at events of $drag