scrimba
Imba Router
Imba Router - Serverside routing
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Imba Router - Serverside routing
AboutCommentsNotes
Imba Router - Serverside routing
Expand for more info
components
Site.imba
run
preview
console
import 'imba-router'

import {About} from './About'
import {Home} from './Home'
import {Categories} from './Categories'
import {Customers} from './Customers'

export tag Site
def render
<self.vbox>
<nav.main>
<a route-to='/'> 'Home'
<a route-to.sticky='/about'> 'About'
<a route-to.sticky='/customers'> 'Customers'
<Home route='/'>
<About route='/about'>
<Customers route='/customers'>
Console
"Customer.load"
,
"6"
,
"Customer.load"
,
"4"
,
about/contact
-2:42