Im trying to create a basic directive that puts an image on the page. The image is contained in a
tag that may or may not be shown depending on a ng-show value. so, something like
<p ng-show="showImage">
<imageDir></imageDir>
</p>
The directive works fine, but it never actually stays within the
tag, and it will be shown all the time, regardless of the value of showImage
Can anyone tell me why?
Here's a plunkr that shows the issue http://plnkr.co/edit/gPXezknXe2mBYztm9QO2?p=preview
Pelement represents a paragraph. It cannot contain block-level elements (including P itself)." reference