I mean they used it in TS because it's easier to generate the Dart version of Angular. Maybe the Angular team just likes to use similar conventions for TS and Dart code.
On Friday, January 15, 2016 at 10:17:43 AM UTC+1, nucl3ar wrote: > > Thanks, > > We're are using Typescript instead. > > 2016-01-15 10:14 GMT+01:00 Günter Zöchbauer <[email protected] > <javascript:>>: > >> In Dart the leading underscore has private semantics (like lower-case in >> Go). >> I guess it's easier to translate TS to Dart and some like it anyway as >> convention. >> >> >> On Thursday, January 14, 2016 at 3:49:27 PM UTC+1, 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 a topic in the >> Google Groups "AngularJS" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/dUpiZJ1M7mM/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.
