Build a kampung football team's first Angular app: selector, @for, #ref, signals and ng build. 16 levels, played right in the browser with nothing to install.
What the levels ask
Mbak Gita, who manages PS Angsana, is building the team's app for the Tarkam Piala Kades with ng new. The App component has three files: the class in app.ts, the HTML in app.html, the styles in app.css. Connect the class to the other two so the team's name shows on the TV in orange, with the motto in italics below it.
Mbak Gita copied a component from a friend's notes, and the TV went black. There is no message on the screen at all. main.ts starts the app with bootstrapApplication(App), and index.html holds one empty tag for it. Fill in the selector so Angular finds that tag.
The squad list has to show the four first-choice players from pemain, one row each, in the data's order: Zaki, Dafa, Rizky, Bagas. Complete the head of the @for block.
The tarkam fixtures were copied from an old tutorial that uses *ngFor. The table is empty, though laga holds three matches. A standalone component only knows the directives in its imports. Fill in imports.
Before the draw, laga is still empty and the board has to say Belum ada laga (no match yet). As soon as Pak RT taps Hasil undian (the draw's result), the board has to show the opponent. Fill in the @if condition.
The substitutes' bench is still empty. While it is, the list has to say Belum ada (nobody yet), and once Gilang signs up only his name shows. Close the @for block in a way that handles an empty list.
The training register: players who have not come are faded and struck out (absen), the captain is orange (kapten), and each row's left stripe takes the shirt colour from p.baju, yellow for the keeper. Rizky arrives late. Fill in both holes in app.html so the look follows the data.
Hanif wants to join. He types his name into the #nama box, then taps Daftarkan (sign up). Fill in the (click) so daftarkan gets what is in that box and Hanif's name joins the list.
The team's shirt order: the name for the back of the shirt has to show while it is typed, letter by letter. The preview reads {{ nama.value }}. Ilham types his name, leaves the box, then taps Pesan (order). Fill in the #nama box so the preview follows every keystroke.
The scoreboard has a component of its own, PapanSkor, with a gol signal and a tambahGol() method. The Gol Angsana button is in App, and App also writes the message to the WhatsApp group. With the #papan label on the component's tag, fill in both holes so two taps give a score of 2 on the board and in the message.
The match date box has to read Minggu, 2 November as soon as the page opens. The class reads that box through @ViewChild('tanggal'), and the console logs what it holds. Choose when that code runs.
The squad lives in the Skuad service now. The badge above the list writes the player count through skuad.jumlah(). Hanif and Gilang join, then Rizky moves to the district team. Fill in jumlah so the badge always matches the list.