Kevin Kreuzer
Jan 23, 2024

--

Hey, Mahdi, thx for the reply and the interesting question. So once the component is routed Angular and the `withComponentInputBinding`feature is activated on the route Angular will pass the query params here as Input. That being said you could also use that component somewhere else and pass the Input via property. From the component point of view it doesnt matter if its coming via Input or from the router. So basically once the component is routed Angular takes care of the input, if the component is not routed (decalred in the route config) you have to take care of the input.

--

--

Kevin Kreuzer
Kevin Kreuzer

Written by Kevin Kreuzer

Passionate freelance frontend engineer. ❤️ Always eager to learn, share and expand knowledge.

No responses yet