cschoeni
122
2
Vue

Ouput diferent Object from Vue

Posted 2 years ago by cschoeni

Hello guys

How to print an element from an array?

like this example:


in the data came a Request from .. api/v1/myarray
```php
return App\Myarray::all();

Inside that you have id, name, address, birthdate etc....

data () {
          return {
            myarray: []
          }
        },
...

// in Template

<p>Hello {{ myarray[12].name }}

Is this output correct in HTML?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.