On clicking the menu on top I can see the backdrop appearing and the proover-view appearing, but the style elemnts (height, top, width, opacity) are not appearing. I can’t understand why.
I think the main problem you were having is that “popover.show()” requires you to pass in “$event” as a parameter so that it knows which element to align itself with.
Wow, thought I tried that…
Is it better to recreate it on the fly and only when needed or having one preloaded (it will be for actions in a list)
Thanks!
I guess it’s really up to you and what you prefer. Preloading will be somewhat more efficient, but I don’t think it would be a noticeable difference. However, if you do decide to preload you will have to be careful not to cause memory leaks (by not calling “remove”) - so keep that in mind
Another thing to check… The popup will draw offscreen if you’re previewing in Chrome with the Developer Tools panel open at the bottom. This caused me a lot of headaches!