Angular — guide & examples
Online Angular playground with standalone components, TypeScript decorators, signals, templates, styles, and live browser preview.
About Angular
Online Angular playground with standalone components, TypeScript decorators, signals, templates, styles, and live browser preview.
Runtime: v21.2.20
Features
- Angular 21 LTS
- Standalone Components
- TypeScript Decorators
- Component Templates
- Signals
- Local Component Imports
- Live Preview
Browser playground limits
- • Code runs in a sandboxed browser preview, without Node.js, a backend, or private environment variables.
- • The Console prompt can inspect browser globals and the rendered DOM, but not variables scoped inside ES modules or component state.
- • Download the project when you need build plugins, server APIs, native modules, or a production dependency workflow.
How to use the Angular playground
- Edit a source file from the project explorer — the live preview recompiles automatically.
- Add, rename, duplicate or delete project files as needed. Update affected imports after renaming or moving a file.
- Use the console for logs and errors, and Format to tidy the active file.
- Share the complete project or download an Angular CLI project ZIP with its source files and configuration.
Editing
Select next occurrenceCtrl / ⌘+D
Delete lineCtrl / ⌘+Shift+K
Move line up / downAlt+↑ / ↓
Copy line up / downAlt+Shift+↑ / ↓
Navigation
Go to symbolCtrl / ⌘+Shift+O
Selection
Select all occurrencesCtrl / ⌘+Shift+L
Terminal
Interrupt / kill processCtrl+C
Send EOF (close stdin)Ctrl+D
Console shortcuts
Press Enter to evaluate, ↑ and ↓ to browse command history, and Ctrl/⌘ + L to clear the console.
import '@angular/compiler'
import { bootstrapApplication } from '@angular/platform-browser'
import { AppComponent } from './app/app.component'
import './styles.css'
bootstrapApplication(AppComponent).catch((error) => console.error(error))
src/app/app.component.ts import { Component, signal } from '@angular/core'
import { CounterCardComponent } from './counter-card.component'
@Component({
selector: 'app-root',
standalone: true,
imports: [CounterCardComponent],
templateUrl: './app.component.html',
styleUrl: './app.component.css',
})
export class AppComponent {
readonly count = signal(0)
increment() {
this.count.update((value) => value + 1)
}
}
Frequently asked questions
- Is the Angular playground free?
- Yes. The Angular playground is completely free with no sign-up — write, run and share Angular code in your browser.
- Do I need to install anything to run Angular online?
- No. The live preview compiles and runs in your browser. After downloading the project, install its dependencies before running it locally.
- Can I share or export my Angular code?
- Yes. Share creates a link to your project. Download exports an Angular CLI project ZIP with its source files and configuration.
- Does the editor support autocomplete and live preview?
- It does — a Monaco-powered editor with autocomplete and formatting, a live preview that updates as you type, and a console for logs and errors.
compilebytes.com/tools/angular