Рет қаралды 10,402
One of the new features in Angular v16 is automatic route parameter mapping using the Input decorator.
What does that mean?
It means we can use an input property to automatically read route parameters, instead of using the Activated Route service. This gives us a shorter and easier syntax.
In this video, let's walk through an explanation and an example.
Content
00:00 Route parameter mapping using the input decorator
00:44 How routing works
03:31 Routing in action (Activated Route)
04:14 Reading route parameters (Activated Route)
05:28 Enabling route parameter mapping using the Input decorator
06:09 Reading route parameters (@Input)
07:20 Routing in action (@Input)
07:33 Why use route parameters? Deep Linking!
08:40 Wrap Up
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
😊About Me
Hey! I'm Deborah Kurata
I love creating content for developers! I create KZbin videos and write articles for freeCodeCamp. And I'm a Pluralsight author with courses in the top 10 most popular (out of 10,000+) over the past 5 years. For my work in support of software developers, I've been recognized with the Microsoft Most Valuable Professional (MVP) award in Developer Technologies, and I'm a Google Developer Expert (GDE) in Angular.
Contact me on Twitter: / deborahkurata
Find my Pluralsight courses: www.pluralsight.com/profile/a...
Access my freeCodeCamp articles: www.freecodecamp.org/news/aut...
View my KZbin content: / @deborah_kurata
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
#angular #bestpractices #angulartutorial #demo
#angularrouting #routinginangular #routingangular #angularroutingtutorial #whatisroutinginangular #howtoroutinginangular