scrimba
Imba Changelog
Imba Changelog - A Selfless Walkthrough
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 Changelog - A Selfless Walkthrough
AboutCommentsNotes
Imba Changelog - A Selfless Walkthrough
Expand for more info
index.imba2
run
preview
console
import {State,Ticket} from './store'

tag app-ticket
def render
<self>
<span.flex> "Ticket {@model.title}"
<button> "Resolve"

tag app-root
@store = State.new

def addTicket
@store.addTicket("New ticket?")

def render
<self.vbox>
<header.hbox>
<h3.flex> "Ticket Tracker"
<button :click.addTicket> "New"
<section.flex>
for ticket in @store.tickets
<app-ticket.item model=ticket>

Console
/index.html
-24:40