S
S
Sergey Nikolaev2015-03-13 15:58:24
Angular
Sergey Nikolaev, 2015-03-13 15:58:24

How to disable link depending on value in angular?

There is a link

<a href="{{data}}"></a>
{{значение}}

It is necessary that it does not work if the value = 0.
Ng-show does not help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Agarkov, 2015-03-17
@ElianL

1) if you are making a dynamic link, then it is better to use ng-href rather than href
2) it should definitely hide the link if it is in data 0
3) it is better to see the context, because there may be a problem with scopes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question