Angular recently came out with a new feature called Standalone Components, and these are the two reasons you should start using it. Number one, this feature means that you no longer have to create components inside a module.
You still can do that, but you don't need to. What's the advantage? You might ask, let's say you have a module in which you wanted to create a button so that you can share it across all the components.
So you no longer need to write extra code for importing into a module, exporting from a module, and then importing that module into all others, and then start using the button that you just want to create. It reduces development time, reduces the lines of code you have to write, and it also optimizes your code.
But the biggest feature that no one is talking about is actually making a website so much more optimized.
Well, let's say you had a shared module before in which you had 10 components, like a button, a text box, and a few others that you want to share across your application. Now, on page number one, you just want to import the text box and the button, but not the eight other extra components.
But before you had no way. And now with the help of standalone components, we can easily accomplish this, and this is no longer a problem.
#angular #standalonecomponents
--
Essential JavaScript Libraries: [ Ссылка ]
Programmer Girl Series: [ Ссылка ]
Programmer React Series: [ Ссылка ]
Short JavaScript Tutorials: [ Ссылка ]
--
Sign up for our newsletter: [ Ссылка ]
--
If you’re just as crazy for tech as us, we’d love to keep you around. You can also find us at:
Twitter: [ Ссылка ]
Blog/Website: [ Ссылка ]
Instagram: [ Ссылка ]
Facebook: [ Ссылка ]
LinkedIn: [ Ссылка ]
We’ll be waiting to catch up with a fellow techie:)
Ещё видео!