0

I got some error when I use ng-href in hyper link ..

Can't bind to 'ng-href' since it isn't a known property of 'a'

<ion-content class="bg" > <div *ngFor="let deltaa of delta"> <ion-list> <div [innerHTML] = "'<p>' + 'deltaa.GoogleMap' + '</p>'"></div> <a ng-href="{{deltaa.MobileNumber}}" style="color:#f3d303">{{deltaa.MobileNumber}}</a> </ion-list> </div> </ion-content>

1
  • I think,You can use this ex: <a data-ui-sref-active="active" ui-sref="{{deltaa.MobileNumber}}" > . I'm also doing the same stuff. It's working Commented Jan 15, 2018 at 8:36

1 Answer 1

2

ng-href is an AngularJs tag. In Angular (v2+) should be:

<a [href]="deltaa.MobileNumber" style="color:#f3d303">{{deltaa.MobileNumber}}</a> 
Sign up to request clarification or add additional context in comments.

1 Comment

and also can you tell me how can i use this <div [innerHTML] = "'<p>' + 'deltaa.GoogleMap' + '</p>'"></div> i want to show the map from database how can i bind this

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.