Instead of
class A {
private p1: string;
constructor(p1: string) {
this.p1 = p1;
}
}
we can do
class A {
constructor(private p1: string) {
}
}
Instead of
class A {
private p1: string;
constructor(p1: string) {
this.p1 = p1;
}
}
we can do
class A {
constructor(private p1: string) {
}
}