title: SyntaxError: Unexpected token } in Vue js
body: <p>My code is like this :</p>
  
  <pre><code>&lt;multiple-photo-product :product="{{ isset($product) ? $product : '' }}"&gt;&lt;/multiple-photo-product&gt;
  </code></pre>
  
  <p>When the code runs it throws an error: </p>
  
  <blockquote>
    <p>SyntaxError: Unexpected token } in</p>
  </blockquote>
  
  <p>But if the code is like this:</p>
  
  <pre><code> &lt;multiple-photo-product product="{{ isset($product) ? $product : '' }}"&gt;&lt;/multiple-photo-product&gt;
  </code></pre>
  
  <p>It doesn't throw an error.</p>
  
  <p>I add <code>:</code>, so that the data is sent as an object.</p>
  
  <p>If it does not use <code>:</code>, the data is sent as a string.</p>
  
  <p>How can I solve it?</p>