Button is not working on leaflet popup


I used the fallowing code to show a popup over marker in app. I need to add a nice button on popup.

map.on('dragend',(MouseEvent) =>{
      this.Getaddress(map.getCenter()).then(data => {
        var popup = Leaflet.popup()
          .setContent('<h2>' + data + '</h2>' + '<br />' + '<p>Hello world!<br />This is a nice popup.</p>' +'<button ion-button clear round (click)=" openPosting()" ')



maybe because it is not valid html.

I must say, I have not tested if button is working.

Best regards, anna-liebt

By the way. I have nothing to do with leafleat, but if you know a way that leafleat is working with local osm data, then I will maybe do something with it.

Best regards, anna-liebt