How to define a private constant variable in Angular 2+ components

1.1k Views Asked by At

Do we have something like private static variable in component itself. Not like Global Constants , But something private to the class (component) itself.

1

There are 1 best solutions below

0
Roberto Zvjerković On

You need private readonly constant = 'constant';