This is funny.
I come from the .NET background, and I don't like this convention (never
used it too).
At this moment, our team is developing a new web application with a java
back-end, and my colleague (which is coming from the java world ; this is
cynical) is 100% that is the convention for Angular2.
But I couldn't find any, and I would like to keep (if possible) the same
convention for this purpose between front-end and back-end.

2016-01-14 21:02 GMT+01:00 michael corbridge <[email protected]>:

> 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 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].
> 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.
>

-- 
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.

Reply via email to