Ionic show submit form in iframe

hi guys i want show post form in iframe. this is worked in html page but not working in ionic html page

<ion-content padding>
    <form id="form1" target="myIframe" method="post" Action="">

        <input  name="token" value="{{pasargadModel.clientToken}}" />

        <input  name="merchantId" value="{{pasargadModel.merchantId}}" />

        <input  name="PaymentId" value="{{pasargadModel.PaymentId}}" />

        <button androidButton class="btn btn-primary nexus" type="submit">
            <i class="fa fa-credit-card"></i>
            اتصال به درگاه


    <iFrame src="" name="myIframe"></iFrame>



Did you find a way to solve it?

Should the form be inside the iFrame tag if you want the form to be inside the iFrame