title: How to pass a user input and update the data using Vue-SweetAlert2
body: <p>I'm currently trying to make a "create" button that triggers a popup with a user text input as the attached image below. </p>
  
  <p><a href="https://i.stack.imgur.com/eP7ki.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eP7ki.png" alt="popup"></a></p>
  
  <p>If it works as I intend, it should store the name written in the text field when the OK button is clicked, and then the name should be reflected on the page like below, as I typed my own name 'Shinichi' as the input.</p>
  
  <pre><code>Test result of createCustomer: Shinichi
  </code></pre>
  
  <p>But in reality, what is displayed is the hardcoded Object which is defined in the alertDisplay() method in the code below. </p>
  
  <pre><code>Test result of createCustomer: { "params": { "title": "What is your Name?", "input": "text", "inputPlaceholder": "Enter your name here", "showCloseButton": true } }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/yClsU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yClsU.png" alt="ObjectDisplayed"></a></p>
  
  <pre><code>&lt;template&gt;
        &lt;v-btn class="create-button" color="yellow" @click="alertDisplay"&gt;Create&lt;/v-btn&gt;
  
      &lt;br/&gt;
  
      &lt;p&gt;Test result of createCustomer: {{ createdCustomer }}&lt;/p&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
    export default {
      data() {
        return {
          createdCustomer: null
        }
      },
      methods: {
        alertDisplay() {
          var customer = this.$swal({
                            title: 'What is your Name?',
                            input: 'text',
                            inputPlaceholder: 'Enter your name here',
                            showCloseButton: true,       
                          });
          console.log(customer);
          this.createdCustomer = customer; 
        }
      }
    }
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I pass the name and have it displayed on the screen instead of the Object like in the attached image? </p>