I think what you are seeing is some c# conventions sneaking into angular2 from the .net developers? Maybe ... I come from a java / AS3 background where that convention is not used. I have noticed that if you look at the source code behind the frameworks, developers can tend to use the leading underscore. I always thought they did this to avoid collisions with variables on the outside. Or to scare people away. it works on me!
On Thursday, January 14, 2016 at 9:49:27 AM UTC-5, nucl3ar wrote: > > Hi, > > I'm looking for a naming convention for Angular 2 but couldn't find any. > > I've seen some samples where leading underscore for private members were > commonly used. > > But I don't see the point since there is the keyword "this". > > Can somebody enlightens me on this matter ? > > Thanks > On Thursday, January 14, 2016 at 9:49:27 AM UTC-5, nucl3ar wrote: > > Hi, > > I'm looking for a naming convention for Angular 2 but couldn't find any. > > I've seen some samples where leading underscore for private members were > commonly used. > > But I don't see the point since there is the keyword "this". > > Can somebody enlightens me on this matter ? > > Thanks > -- 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.
