V
V
v-orlov2016-07-09 16:42:56
Angular
v-orlov, 2016-07-09 16:42:56

How to insert an Angular variable into a link?

<a href="tel: ???">
  Позвонить другу по номеру - 
  {{userphone}}
</a>

How to insert the same variable that describes the data with the phone into the link?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
v-orlov, 2016-07-09
@v-orlov

bingo

<a href="tel: {{userphone}}">
  Позвонить другу по номеру - 
  {{userphone}}
</a>

it's just that if there are double quotes inside the variable, they all need to be replaced with single ones

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question