Angular 6 private methods
问题 We are upgrading to Angular 6 from 5. We have a shared library that we are getting build errors. Being a Java shop, we got in the habit of marking our component methods and attributes private. In Angular 6 when building our library (after converting and using the new library CLI capability), we get: Property 'getCurrentYear' is private and only accessible within class. In effect any attribute or method used in a template html cannot be marked private anymore on the component class. Of course