fix the memory leak when the content contain directive with isolated scope

1. create new child scope from the given one
2. destroy the child scope when the popover is hidden