Get your own Angular server
main.ts
index.html
 
import { bootstrapApplication } from '@angular/platform-browser';
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [CommonModule],
  template: `
    <h3>Lists</h3>
    <ul>
      <li *ngFor="let item of items; index as i">{{ i + 1 }}. {{ item }}</li>
    </ul>
    <button (click)="add()">Add Item</button>
  `
})
export class App {
  items = ['Angular', 'React', 'Vue'];
  add() { this.items = [...this.items, 'Svelte']; }
}

bootstrapApplication(App);

                    
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Angular Lists</title>
</head>
<body>
  <app-root></app-root>
</body>
</html>