Thanks for the reply Sander,

Yes I do think a good workaround would be to use show instead.

I am interested in the "It can be worked around" piece of your advice -- 
I'm ok with adding some complexity to my service/directives as long as it 
doesn't add much complexity to the consuming code.

Thanks,
Paul

On Sunday, July 19, 2015 at 1:13:07 AM UTC-4, Sander Elias wrote:
>
> Hi Paul,
>
> The easy way out? use ng-show, for a small part, that is not an issue. If 
> you part is bigger, put the ng-if inside your tag.
>
> <div transclude-to="top"><div ng-if="showTop">I'm above."</div></div>
>
> Transcluding, and ngIf are difficult to combine. It can be worked around, 
> but its a lot of work. A simple solution might be, check in your 
> transclude-to directive if there is an $attrs.ngIf, and log a warning to 
> the console (or even throw an new Error('transclude-to does not support 
> ngIf"))
>
> Regards
> Sander 
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to