I'm used to seeing hashes in older Angular (< 10) versions in the HTML templates to declare DOM elements as variables.
But in Angular 10 I found examples where hashes are used inside component classes.
class Product {
#name: string;
get name(): string {
return this.#name;
}
}
Can anyone explain to me how it works?