Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

What is the meaning of @private in the API source code?

$
0
0

@LozJackson wrote:

In the case of javascript frameworks like Ember.. and the ember addons available.. What is the meaning of @private in the API source code?

...does it mean the property/method is private to the component/class and should only be used internally by that component/class?

Or does it mean that the property/method is private to the framework and should only be used internally by the framework?

Another way to put this question is: Can someone explain/clarify to me the difference between public/private methods/properties, and public/private API. (...are they both essentially the same thing?)

I trying to figure out when I should make my own methods/properties private or public and why it matters (haven't really given it too much thought before now)

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles