I usually prefix the private member with an underscore:
class Example {
private _member: string;
get member() {
return this._member;
}
set member(val: string) {
this._member = val;
}
}
On Mon, Jul 4, 2016 at 9:13 AM, Pim Kartner <[email protected]> wrote:
> Hey,
>
> I have a question about the styleguide, style 03-04 properties and methods.
>
> When naming properties and methods according to the styleguide I can't
> name getters and setters the same as the property.
>
> Does someone have a solution or convention for this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
Lucas Lacroix
Computer Scientist
System Technology Division, MEDITECH <http://ehr.meditech.com>
781-774-2293
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.