Get params from URL using inputs in Angular 16 | Enable withComponentInputBinding() in Angular 16

preview_player
Показать описание
In Angular 16, you can bind the router data (parameters, query string) directly to the component Inputs by using withComponentInputBinding().
This makes it easier to access route information in your components and reduces the need to inject the ActivatedRoute service.
In this video, we will pass parameters and query string in angular URL and will get those values in the component directly to the @Input() properties.

Passing router data as component inputs in angular 16.
How to get URL data in a component in Angular?
How to get url value to component in Angular?

#angular16 #angular #nitishkaushik
Рекомендации по теме
Комментарии
Автор

short, to the point, also address different cases like multiple parameters and query string etc. very nice !

Rameshkumar-neev
Автор

Simple, easy and concise.
Thank you so much for the great tutorial Nitish!

ossamaettahery
Автор

Wonderful Nitish. Is there any difference of this feature in Angular-17 if so, please demonstrate. Thanks Again!

jagadishdasari
Автор

How can i get values from url in angular 14 version ? Pls response asap its more helpful for me. Thanks in advance

Rishvanth_
welcome to shbcf.ru