You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export class AppComponent {
city = 'San Francisco';
}
check
The city property is of type string but you can omit the type because of type inference in TypeScript. The city property can be used in the AppComponent class and can be referenced in the component template.
To use a class property in a template, you have to use the {{ }} syntax.
Describe the problem that you experienced
type inference in TypeScript leads to "Page not found".
On the tutorial page: https://angular.dev/tutorials/learn-angular/updating-the-component-class in the first paragraph:
Add a property called city
Update the component class by adding a property called city to the AppComponent class.
export class AppComponent {
city = 'San Francisco';
}
check
The city property is of type string but you can omit the type because of type inference in TypeScript. The city property can be used in the AppComponent class and can be referenced in the component template.
To use a class property in a template, you have to use the {{ }} syntax.
Enter the URL of the topic with the problem
https://angular.dev/tutorials/learn-angular/updating-the-component-class
Describe what you were looking for in the documentation
Working link for the explanation of type inference in TypeScript.
Describe the actions that led you to experience the problem
Clicking on the provided link.
Describe what you want to experience that would fix the problem
A link that leads to an explanation of type inference in TypeScript.
Add a screenshot if that helps illustrate the problem
If this problem caused an exception or error, please paste it here
No response
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
No response
The text was updated successfully, but these errors were encountered: