This commit is contained in:
parent
f46d6355dd
commit
86ecaedb0e
|
@ -3,7 +3,7 @@
|
|||
<span ng-if="$ctrl.showNumber">
|
||||
{{ $ctrl.phoneNumber }}
|
||||
</span>
|
||||
<a href="{{$ctrl.schemeUrl}}:{{$ctrl.phoneNumber}}">
|
||||
<a href="tel:{{$ctrl.phoneNumber}}">
|
||||
<vn-icon
|
||||
flat
|
||||
round
|
||||
|
@ -14,7 +14,7 @@
|
|||
</vn-icon>
|
||||
</a>
|
||||
</span>
|
||||
<a ng-if="!$ctrl.icon" href="$ctrl.schemeUrl:$ctrl.phoneNumber">
|
||||
<a ng-if="!$ctrl.icon" href="tel:$ctrl.phoneNumber">
|
||||
{{ $ctrl.phoneNumber }}
|
||||
</a>
|
||||
</span>
|
||||
|
|
|
@ -5,7 +5,6 @@ class Controller {
|
|||
this.phoneNumber = null;
|
||||
this.icon = true;
|
||||
this.showNumber = true;
|
||||
this.schemeUrl = 'tel';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,6 +15,5 @@ ngModule.vnComponent('vnLinkPhone', {
|
|||
phoneNumber: '<',
|
||||
icon: '<?',
|
||||
showNumber: '<?',
|
||||
schemeUrl: '<?',
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue