Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Can we use *ngFor to bind data dynamically to view within AlertController

$
0
0

@champion007 wrote:

Hi Folks,

Was wondering if we can use something like below, not working for me. Am i missing something ?

this.multipleNumber.push([
  {
    "name": "Number1",
    "number": "8782374"
  },
  {
    "name": "Number2",
    "number": "9863453"
  },
  {
    "name": "Number3",
    "number": "4512345"
  }
])
let alert = this.alertCtrl.create({
     title: `<p *ngFor='let post of multipleNumber'>{{post.number}}</p>`,
     subTitle: '10% of battery remaining',
     buttons: ['Dismiss']
   });
alert.present();

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>