How to Hide Your Angular Properties - # vs private Explained

added by JavaScript Kicks
6/22/2023 2:10:13 PM

2438 Views

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


0 comments