Is there a way to transfer all the Inputs and Outputs of a Parent Component into Typescript instead of HTML?
I need to work with a Parent Component that has many parameters for sending and receiving data to a Child Component. I want to convert them to Typescript. How can I do this?
<app-address-type-dropdown class="addresstype" (addressTypeChange)="addressTypeChangeEvent($event)"
[addressTypeDefaultItem]="addressEntryConfig.addressTypeDefaultValue"
[selectedAddressType]="addressEntryConfig.selectedAddressType"
[valuesToExclude]="addressEntryConfig.addressTypeDropdownListExclusion">
</app-address-type-dropdown>
Objective:
<app-address-type-dropdown> </app-address-type-dropdown>
<!-- With input and output parameters in the Typescript file -->
- The main goal is to streamline the process of rearranging html/css without having to manually copy inputs/outputs.
If services are used, will it result in strongly typed components where the parent and child are overly connected? Is it possible to implement a smart-dumb architecture strategy using services or not?