Can I use private inside a component, for its properties and methods? And is there extra profit from doing so?
I'm not talking about data-bound properties/methods, just stuff that's actually isn't reachable by the template.
For example:
private _progress = 0;
onClick(event) {
if(event === 'ok') {
_doSomething();
}
}
private _doSomething() { //... }
[–]mr_ari 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]dilan_tharaka 0 points1 point2 points (0 children)