As I delve into the angular documentation, I notice that all classes have properties defined in a specific way:
class A {
a = 2;
};
However, in the TypeScript official documents, the class properties are declared differently:
class A {
a:2
}
I'm curious to know why there is this difference and which one is considered correct?