Angular insist I add standalone = true, despite using Angular 19

Discussão em 'Angular' iniciado por Sachin, Janeiro 13, 2025.

  1. Sachin

    Sachin Guest

    My angular config:

    @Component({
    selector: 'app-root',
    imports: [RouterOutlet, JsonPipe, HeadComponent],
    templateUrl: './app.component.html',
    styleUrl: './app.component.scss'
    })
    export class AppComponent {

    bootstrapApplication(AppComponent, appConfig)
    .catch((err) => console.error(err));

    export const appConfig: ApplicationConfig = {
    providers: [
    provideZoneChangeDetection({ eventCoalescing: true }),
    provideRouter(routes)]
    };


    But my ide, intellij insists that all components be marked with standalone = true?

    Why is that?

    [​IMG]

    Continue reading...

Compartilhe esta Página