PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

Angular · Theory

First App

← All stacks

Theory

5/43

First App

First app: a marks page. One component lists two students. Click Fail filter. The list shrinks. That proves binding + *ngFor + *ngIf. You don’t need a backend yet. Hard-code an array.

Then add a route /marks. Then a service that holds the array. That is a first app a viva panel believes. A blank CLI hello-world with the default Angular logo is not a first app.

Trap — wiring HttpClient before the array version works. If local data fails, the API will fail louder.

Exam tip

Two students + filter. Then route. Then service.

Example

import { Component } from "@angular/core";

@Component({
  selector: "app-root",
  template: `
    <h1>{{ title }}</h1>
    <button (click)="toggle()">Toggle</button>
    <p *ngIf="open">Panel open</p>
  `,
})
export class AppComponent {
  title = "Angular practice";
  open = true;
  toggle() {
    this.open = !this.open;
  }
}

First App: toggle open. Say whether the panel is on screen after one click.

Short notes

  • DefTiny marks list — array, *ngFor, click filter.
  • RuleHard-code data before HTTP.
  • TrapAPI first, UI later.

Questions

1

What should a first Angular app prove?

Previous← Get StartedNextComponents →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.