Answer the question
In order to leave comments, you need to log in
Laravel + Vue js. How to correctly pass "big" data to a component?
Hi all!
I create a multi-page application (like CRM). On pages where Vue is needed, I add a component, like this:
@extends('layouts.app')
@section('content')
<div class="panel panel-default">
<div class="panel-heading">Создание пользователя</div>
<div class="panel-body">
<user-form
:user="{{ $user }}"
url="{{ route('api.user.store') }}"
></user-form>
</div>
</div>
@endsection
<user-form
:user="{{ $user }}"
url="{{ route('api.user.store') }}"
:countries="{{ $countries }}"
:cities="{{ $cities }}"
></user-form>
Answer the question
In order to leave comments, you need to log in
It is correct to use autocompletion, and not to issue 1000 lines.
And also choose the country first, and then the cities that are in this country.
And this is not 1000 lines.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question