title: How to call livewire method in template?
body: <p>In the component of Laravel 8 / livewire 2 app I selected state(code_id) and I need to preview state and I try to make it with
  calling method of the component :</p>
  <pre><code>{{ getStateLabel($form['state_id']) }}
  </code></pre>
  <p>But I got error :</p>
  <pre><code>Call to undefined function getStateLabel() (View: myproject/resources/views/livewire/personal/new-item.blade.php)
  </code></pre>
  <p>In the component I have defined :</p>
  <pre><code>class NewItem extends Component
  {
  
      public $statesSelectionArray = [];
  
      public function getStateLabel($state_id= 9)
      {
          foreach( $this-&gt;statesSelectionArray as $next_key=&gt;$nextStateSelection ) {
              if($nextStateSelection['id'] == $state_id) {
                  return $nextStateSelection['name'];
              }
          }
      }
      ...
  
  }
  </code></pre>
  <p>uSIALLY WHEN IN TEMPLATE i CALL COMPONENT METHOD i USE SYNTAX :</p>
  <pre><code>wire:click=&quot;METHODnAME(2);
  </code></pre>
  <p>But which syntax have I to use in my case ?</p>
  <p>Thanks in advance!</p>