I’ve built an app using the options api and now I’m learning the composition api, mainly because I need to reuse half the code elsewhere
I could pass props to a component inside the #app div using the options api like so:
import CalendarYear from "./CalendarYear.js";
export default {
components: { CalendarYear }
}
And then in index.php
<div id="app">
<calendar-year
route="{{ route('api.calendars.base-calendars.show', $calendar) }}"
route-save="{{ route('api.calendars.base-calendars.edit', $calendar) }}"
></calendar-year>
</div>
Is there a way to do the same in the comp api?