How to Hide Your Angular Properties – # vs private Explained

1 · freeCodeCamp.org · June 20, 2023, 10:36 p.m.
Summary
Have you noticed a hash symbol showing up in Angular code samples? If not, you may see it soon. What is the purpose of the # and when should you use it? The # symbol was recently added to JavaScript to denote private class properties. Making a class variable private...