I was thinking about how could be possible implement some members in a component that could be accessed from the template but not from a parent component.
I searched for some information about the typescript visibility in angular 2 but I only found topics about "public" and "private" declarations but not about"protected".
So, does it make sense to use "protected" for this?
the compiler warns me if i use in the html file a property which is declared private (although it works!). If i use protected, then no warns is emitted
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