Free Online Angular Playground
Write a standalone Angular component with signals and see it run, with everything you log shown in a console beside the preview.
Press Run, or Ctrl or Cmd + Enter, to run your code. The page shows in Preview and everything you log shows in Console. Use Stop if a script never ends. Write one standalone Angular component named App. Types are removed when the code runs, not checked.
Preview
Console
Output appears here. Press Run, then try console.log("Hello")
How to use
Write a component named App in the editor, using the @Component decorator with a selector, template and optional styles.
Press Run, or Ctrl or Cmd + Enter. The first run downloads Angular, which takes a few seconds, then the component renders in the preview and the console shows what you log.
Use Stop if your code never ends. Turn on Auto-run if you want it to run as you type.
If the component has a mistake, the message shows in the console.
Copy the code, download a zip of your files or clear the editor with the icons above it.
Open the full screen editor for more room, and use the A buttons to resize the text.
Press Format to tidy the code, or untick Wrap long lines to scroll sideways instead.
Why use this tool
Standalone components
The modern way to write Angular: a component with its own template, styles and imports, with no NgModule.
Signals and control flow
Use signal, computed and effect, and the @if, @for and @switch blocks in your template.
The real compiler
Angular compiles your template in the browser, so template mistakes are reported as they would be in a real app.
Console
console.log and errors from your code are shown beside the preview.
Isolated preview
Your component runs in an isolated frame, so it cannot reach this site or your other tabs.
One-click formatting
Tidy the indentation and spacing of the tab you are editing with one click or Shift + Alt + F.
Comfortable editor
Resize the text, switch line wrapping on or off, or go full screen with the editor and preview side by side.
About this tool
Write an Angular component and see it render live in your browser. Put a standalone TypeScript component, its template and its styles together, press Run, and the preview updates with everything you log shown in a console beside it. Use it to learn Angular, try signals, @if and @for control flow, template bindings and component styles, or test an idea without a project. Angular's compiler runs in the preview, so there is nothing to install. It is a quick way to try a component, not a replacement for the Angular CLI.
Frequently asked questions
Angular 22, loaded from a public CDN, with change detection that works from signals and events, so zone.js is not needed.
@angular/core, @angular/common, @angular/platform-browser and rxjs. Other packages, such as the router or forms, are not loaded.
Constructor injection by type needs extra type information that is removed when the code runs here. Use the inject() function from @angular/core, for example http = inject(HttpClient).
No. Types are removed when the code runs, not checked. The TypeScript Playground is the place to try types.
Check that you pressed Run, that your class is called App and has a @Component decorator, and that the console has no error. The selector can be any tag name.
Yes. Angular is loaded from a public CDN when you press Run, and the first run takes a few seconds because the compiler is large. Your browser keeps it afterwards.