I am having 2 form fields Vehicle type
i,e (Autocomplete with filter component) and Vehicle model
i,e (Select with multiple selection component) are displayed as shown in below image:
Scenario: Here on selecting Vehicle type
(for ex bikes) the associated Vehicle Model
(i,e bikes model) are displayed as shown in below image:
Now i want some of the vehicle Models
to be selected by default like this:
I Know this is the duplicate of this question
But here my scenario is different, In that question they have set select component items to by default using the constructor
.But in my case i am already having the constructor
for another imported component
(i,e Chips autocomplete) component.Due lack of typescript knowledge,I am unable to it. I am stuck here.
Here is the stackblitz link.