Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ilikerobots/973a0d2fa7ac2ecebe37fa148bafb928 to your computer and use it in GitHub Desktop.

Select an option

Save ilikerobots/973a0d2fa7ac2ecebe37fa148bafb928 to your computer and use it in GitHub Desktop.
@RouteConfig(const [
const Route(path: '/players', name: 'Players', component: PlayersComponent, useAsDefault: true),
const Route(path: '/teams', name: 'Teams', component: TeamsComponent),
const Route(path: '/fields', name: 'Fields', component: FieldsComponent,
data: const{'title': 'Ballparks'}),
const Route(path: '/player/:id', name: 'PlayerDetail', component: PlayerDetailComponent,
data: const{'title': 'Player'}),
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment