Angular Munich pinned «https://justangular.com/blog/protect-your-app-from-infinite-change-detection»
This media is not supported in your browser
VIEW IN TELEGRAM
Ikea made by AI 🤖!))))
🔹 Why Prefer #TypeScript Records Over Switch/Case Statements 🔹
Using Maps or Records instead of switch/case statements is a cleaner approach leading to more maintainable code.
Maps/Records provide a straightforward way to associate keys with values, reducing the verbosity and complexity of multiple case conditions.
#webdev #javanoscript #angular #react #vue #frontend #backend #js
Using Maps or Records instead of switch/case statements is a cleaner approach leading to more maintainable code.
Maps/Records provide a straightforward way to associate keys with values, reducing the verbosity and complexity of multiple case conditions.
#webdev #javanoscript #angular #react #vue #frontend #backend #js
‼️‼️‼️ Remove all polyfill.io from all of your projects. NowRemove all polyfill.io from all of your projects. Now! ‼️‼️‼️
(Hope none had anyway but just to be sure)
https://sansec.io/research/polyfill-supply-chain-attack
(Hope none had anyway but just to be sure)
https://sansec.io/research/polyfill-supply-chain-attack
Sansec
Polyfill supply chain attack hits 100K+ sites
The new Chinese owner of the popular Polyfill JS project injects malware into more than 100 thousand sites.
🅰️💥Angular 18.1 will introduce the new @let syntax for declaring local variables in the templates:
#angular #javanoscript #typenoscript #AngularAddicts
#angular #javanoscript #typenoscript #AngularAddicts
#Angular inject() function vs Constructor injection, what is the difference❓
At first glance, there isn't much difference between the inject() function and constructor injection, but when you dive deeper, the inject() function has some benefits compared to constructor injection ✅
At first glance, there isn't much difference between the inject() function and constructor injection, but when you dive deeper, the inject() function has some benefits compared to constructor injection ✅
A new lazy-route migration schematic is coming to #Angular! 🪄
If your application has routes, that are importing components directly, you will be able to use an 𝐚𝐮𝐭𝐨𝐦𝐚𝐭𝐞𝐝 𝐦𝐢𝐠𝐫𝐚𝐭𝐢𝐨𝐧 𝐜𝐨𝐦𝐦𝐚𝐧𝐝 𝐭𝐨 𝐜𝐨𝐧𝐯𝐞𝐫𝐭 𝐭𝐡𝐞𝐬𝐞 𝐭𝐨 𝐥𝐚𝐳𝐲-𝐥𝐨𝐚𝐝𝐞𝐝 𝐫𝐨𝐮𝐭𝐞𝐬 𝐚𝐥𝐥 𝐚𝐭 𝐨𝐧𝐜𝐞.
Just run this command and improve your app's performance automatically.
Credits for the feature to Enea Jahollari, here is the pull request 👉
If your application has routes, that are importing components directly, you will be able to use an 𝐚𝐮𝐭𝐨𝐦𝐚𝐭𝐞𝐝 𝐦𝐢𝐠𝐫𝐚𝐭𝐢𝐨𝐧 𝐜𝐨𝐦𝐦𝐚𝐧𝐝 𝐭𝐨 𝐜𝐨𝐧𝐯𝐞𝐫𝐭 𝐭𝐡𝐞𝐬𝐞 𝐭𝐨 𝐥𝐚𝐳𝐲-𝐥𝐨𝐚𝐝𝐞𝐝 𝐫𝐨𝐮𝐭𝐞𝐬 𝐚𝐥𝐥 𝐚𝐭 𝐨𝐧𝐜𝐞.
Just run this command and improve your app's performance automatically.
𝐧𝐠 𝐠𝐞𝐧𝐞𝐫𝐚𝐭𝐞 @𝐚𝐧𝐠𝐮𝐥𝐚𝐫/𝐜𝐨𝐫𝐞:𝐫𝐨𝐮𝐭𝐞-𝐥𝐚𝐳𝐲-𝐥𝐨𝐚𝐝𝐢𝐧𝐠
Credits for the feature to Enea Jahollari, here is the pull request 👉
GitHub
feat(migrations): add migration to convert standalone component route… by eneajaho · Pull Request #56428 · angular/angular
…s to be lazy loaded
PR Checklist
Please check if your PR fulfills the following requirements:
The commit message follows our guidelines: https://github.com/angular/angular/blob/main/CONTRIBUTING...
PR Checklist
Please check if your PR fulfills the following requirements:
The commit message follows our guidelines: https://github.com/angular/angular/blob/main/CONTRIBUTING...