Reputation: 3438
I came across a scenario where I had to evaluate an angular expression within quotes like below
<a href="mailto:{{account["email"]}}"
But the above doesn't properly evaluate content in child quotes(repEmail). How do I resolve this?
Upvotes: 1
Views: 141
Reputation: 9616
try
<a href="mailto:{{account['email']}}"
or
<a href="mailto:{{account.email}}"
or
<a ng-attr-href="mailto:{{account['email']}}"
or
<a ng-attr-href="mailto:{{account.email}}"
Upvotes: 2