When it comes to adding properties in an Angular component, the placement of these properties in relation to the constructor function can be a topic of discussion. Is it best to declare them before or after the constructor? Which method is better - Method 1 or Method 2? And most importantly, why?
Method 1
class Test{
private variableA;
constructor(){}
}
Method 2:
class Test{
constructor(){}
private variableA;
}