Hey Sanders! Looks like you're everywhere these days = )
I will try to explain. If I will use *ngIf*, it will remove not only the
wrapping link element, but it's content as well. The *{{ content }}* should
always be displayed, but it should be wrapped in link element if specified
condition is truthy.
On Tuesday, October 27, 2015 at 10:28:49 AM UTC+3, Sander Elias wrote:
>
> Hi Slava,
>
> Is there an reason you can not use ngIf?
>
> <a ng-href="{{ link.url }}" ng-if="showLink">
>
> ngIf will take the whole element out of the DOM if there is no truthy
> value.
>
> 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.