Angular First App
import { Component, ApplicationConfig } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';
// In a real generated project, AppComponent lives in its own file at
// src/app/app.component.ts, and appConfig lives in its own file at
// src/app/app.config.ts. Both are inlined here so this example runs as a
// single, self-contained file.
@Component({
selector: 'app-root',
standalone: true,
template: `<h1>{{ title }}</h1>`
})
export class AppComponent {
title = 'my-first-app';
}
const appConfig: ApplicationConfig = {
providers: []
};
bootstrapApplication(AppComponent, appConfig)
.catch(err => console.error(err));