Simple as it should be, it won't work as this code can't detect AngularJS codes.
<a href="whatsapp://send?text={{challenge.challenge_title}}"
data-action="{{FullURL}}">Whatsapp</a>
Do i need a directive for this? If yes, what is it? Someone with experience in AngularJS, kindly help.
You need to sanitize anchor href inside your config phase of angular, that will allow your href with whatsapp prefix.
Code
app.config(function($compileProvider){
//other configuration code here
$compileProvider.aHrefSanitizationWhitelist(/^\s*(whatsapp):/);
})
Look this SO Question for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With