Skip to content

Instantly share code, notes, and snippets.

View ortzinator's full-sized avatar

Brian Ortiz ortzinator

View GitHub Profile
@ortzinator
ortzinator / gist:ceec18e42c4b88d3b7cb6cf4cb8d7fd1
Last active September 20, 2021 21:04
Inertia reactive navigation
const navigation = ref([
{
name: 'Dashboard',
get href() {
return route('dashboard');
},
get current() {
return route().current('dashboard');
}
},

Keybase proof

I hereby claim:

  • I am ortzinator on github.
  • I am ortzinator (https://keybase.io/ortzinator) on keybase.
  • I have a public key ASAFb_q1CA49vck02ZcxAIczH9u60VugGa3-LfXgMc9nlAo

To claim this, I am signing this object: