Skip to content

[Docs] [Tutorial] Control Flow in Components - @if, missing export keyword for App class in example #63505

@AdityaAnuragi

Description

@AdityaAnuragi

Describe the problem that you experienced

While I was using the above mentioned tutorial here, I found that the example for the @if code sample doesn't export the class App.

However other sections of the tutorial like here have a very similar code sample with the class being exported.

Enter the URL of the topic with the problem

https://angular.dev/tutorials/learn-angular/4-control-flow-if

Describe what you were looking for in the documentation

I am looking for the code sample to include the export keyword for the class App

Describe the actions that led you to experience the problem

No response

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

Image

If this problem caused an exception or error, please paste it here

TS2459: Module '"./app/app"' declares 'App' locally, but it is not exported.
src/main.ts:11:8

If the problem is browser-specific, please specify the device, OS, browser, and version


Provide any additional information here in as much as detail as you can


Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions