can anyone tell me why the method should be preceded by get?
can anyone tell me why the method should be preceded by get?
should be used in conjunction with the @ Input injector, which is just a syntax rule developed by the angular team. It is usually used in conjunction with set. Both get and set are indispensable.
take a look at the instructions for getter and setter on MDN.
https://developer.mozilla.org.