-
-
Save cursosdesarrolloweb/b26edb2719646cd7c8172d61cac1a538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<inertia-link | |
class="button text-white bg-theme-1 shadow-md mr-2" | |
:href="route('posts.create')" | |
> | |
{{ __("create_post") }} | |
</inertia-link> | |
<!-- O --> | |
<button | |
class="button text-white bg-theme-1 shadow-md mr-2" | |
@click="create" | |
> | |
Crear Post | |
</inertia-link> | |
<script> | |
export default { | |
name: "PostsList", | |
methods: { | |
create() { | |
this.$inertia.visit(this.route("posts.create")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment