I have some constants defined as public static readonly in a typescript class. This contains some general constants which is across the application. How to access them in component html? is there a way directly to use in html? will something like {{MyConstantsFactory.Myconstant} work?
No, you have to cast them locally (using your factory) in the class's constructor and use them as you would normally use any property
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With