Это видео недоступно.
Сожалеем об этом.
Angular 18 New Feature for ng-content: Default Content
HTML-код
- Опубликовано: 14 авг 2024
- Angular 18 introduces a new feature for the ng-content element called Default Content (fallback content). This video explains in detail how the new feature works inside component templates.
The new feature of the Angular framework helps developers optimize templates. Content projection now supports a default value that is automatically used if there is no projected content. Watch my video to learn the details in a clear way and with great visual style, using code examples and animated infographics.
ℹ️ Thanks to the @Angular Team for a new useful feature.
Source: github.com/ang...
☕️ Donation: / igorsedov
For more tips and updates, follow me on:
▪️Twitter: / theigorsedov
▪️LinkedIn: / igorsedov
▪️Instagram: / theigorsedov
Website: igorsedov.com
Email: me@igorsedov.com
#angular #angular18
because of this video explanation i have subscribed to your channel
Thank you for subscribing to my channel!👍 It means a lot to me, and I appreciate your support. It helps me continue to release new videos and allows my channel to grow.🚀 A new video will be published in a few days, and soon I will start publishing new videos more often.👨💻
it was really a nice explanation brother thanks a lot for making such content
Thank you so much for your comment! 😊 I'm glad you liked the video. I hope you enjoy my other videos about Angular as well. Your support means a lot!
Nice explanation! Thank you!
Great to hear you found my explanation nice! Thanks for watching and positive feedback.👍 Stay tuned for more Angular🚀 content coming soon!🔜
This is greatly useful utility from Angular. Thanks for the video!
You are welcome!👍
Thank you, great work! Keep it going
Awesome to hear you enjoyed it!👍 I'm publishing a new video about a new interesting feature of Angular 18🚀 tomorrow. Stay tuned for more Angular content coming soon!
Thanks IGOR!
Thanks for watching!👍 Stay tuned for a new video about a new interesting feature of Angular 18 tomorrow.🚀
but one thing which you haven't explained was how to route this
{
path: '',
redirectTo: 'first',
pathMatch: 'full'
},
{
path: 'first',
component: FirstComponent
},
{
path: 'second',
component: SecondComponent
}
this is the path structure which everyone should follow then only it will appear on your browser
Thank you for your valuable feedback and advice!👍 You are right, I should have explained it. I appreciate your help and will ensure future videos are more detailed, like the Angular Signal video on my channel. Thanks again!
You can do the same thing with input and the input default in the child. More confusion with this feature
Thanks for the suggestion and comment.👍 This is a great suggestion, I've added this topic to my list of ideas for new videos.✍️ Angular 18🚀 will be released this month and I'm currently releasing videos about new features (a new video coming this weekend).
There is no confusion at all
We are talking about content projection and not Inputs
It is a really cool feature, which by a lot reduces the boilerplate if you want to implement it yourself
Yes, this is a really useful and long-awaited feature (since 2016).
I'm publishing a new video about another interesting feature of Angular 18 tomorrow.🚀