Relative Content

Tag Archive for angulartypescriptemit

Send data to different component with angular emit

There is a button that calculates desi on the product editing page. When this button is clicked, a different component, the modal, opens. In the opened modal, desi calculation is made by taking the necessary information. When I printed this information received from the user to the console on the product editing page, the gravity value was written as length. I researched but couldn’t find the reason. The emit structure I created was a bit long. Can you give me suggestions for writing a shorter and cleaner code?