Angular 🇺🇦 - practical notes
الذهاب إلى القناة على Telegram
Angular - practical notes This group is for posting practical notes for Angular developers. Mostly all posts are for quick implementation https://t.me/angular_practical_notes (Commenting on posts only in ENG and UA langs here). Welcome!
إظهار المزيد1 631
المشتركون
لا توجد بيانات24 ساعات
+17 أيام
لا توجد بيانات30 أيام
أرشيف المشاركات
ngComponentOutlet using in Angular
#angular #ngComponentOutlet
✅ Link: https://ankit-kaushik.medium.com/component-switching-dynamically-using-lazy-loading-in-angular-templates-81f026e4b148CSS rare properties
#css #textStroke
✅ Link: https://medium.com/@flemming.dierlamm/7-useful-css-tricks-ebe599185db
Unsubscribe observables using the Directive Composition API
#angular #directive
🚩 > Angular 15
✅ Link: https://medium.com/@lucasousi/unsubscribe-observables-like-a-pro-using-the-angular-directive-composition-api-78438408a9ff
⚠️
createUrlTreeFromSnapshot using in Angular
#angular #guard #createUrlTreeFromSnapshot
🚩 > Angular 15
✅ Link: https://blog.herodevs.com/functional-router-guards-in-angular-15-open-the-door-to-happier-code-4a53bb60f78aAngular theming using Dynamically Load CSS
#angular #theme
⚠️ To see the effect, compile the app with ng build.
“start”: “npm run build && ng serve”✅ Link: https://medium.com/@piyalidas.it/angular-theme-integration-using-dynamically-load-css-1617147799bf
JS Performance: Secrets to Reducing DOM Operations 🚀
✳️ When we change the DOM, the browser must redraw the page, which can be slow and time-consuming. By reducing the number of DOM operations, we can keep page redrawing to a minimum, improving code performance.
#js
✅ Link: https://medium.com/front-end-weekly/boost-your-javascript-performance-secrets-to-reducing-dom-operations-4160162bd952
Custom RxJS Operators
#rxjs #custom
✅ Link: https://medium.com/@henriquecustodia/creating-custom-rxjs-operators-e7069d12164f
CSS transition-timing-function
#css #animation
✅ Link: https://ishratumar.medium.com/css-transitions-and-sub-properties-explained-33745cc571b5
Angular initialization listeners
#angular
✅ Link: https://dev.to/ayyash/the-mystic-three-tokens-of-angular-appbootstraplistener-appinitializer-platforminitializer-76j
⚠️ DestroyRef Provider in Angular
#angular #inject #destroyRef
🚩 > Angular 16
✅ Link: https://netbasal.com/getting-to-know-the-destroyref-provider-in-angular-9791aa096d77
Use Tree Shaking to Remove Unused Code
#angular #webpack
✅ Link: https://guillaume-ferber.medium.com/maximizing-performance-with-angular-tips-and-tricks-for-efficient-code-76939fe7333b
Implement Code Splitting for Smaller Bundles
#angular #webpack
Install dependencies
npm install --save-dev webpack webpack-cli webpack-dev-server html-webpack-plugin clean-webpack-plugin✅ Link: https://guillaume-ferber.medium.com/maximizing-performance-with-angular-tips-and-tricks-for-efficient-code-76939fe7333b
Confirmation Dialog Decorator
#angular #decorator
✅ Link: https://itnext.io/confirm-dialog-with-decorator-in-angular-7491d1237667
Сollection of HTML tips
#html
1. Capture attribute to open your device camera
<input type="file" capture="user" accept="image/*">2. Automatic website refresh
<head>
<meta http-equiv="refresh" content="10">
</head>
3. Activate spellcheck
<input type="text" spellcheck="true" lang="en">4. Specify file type to be uploaded
<input type="file" accept=".jpeg,.png">5. Automatically download on link click
<a href="image.png" download>
Using the :is(), :where(), and :has() Pseudo Elements in CSS
#css
✅ Link: https://medium.com/@austinrutledge0/a-guide-to-using-the-is-where-and-has-pseudo-elements-in-css-96916b65be27
CSS Animation Patterns
#css #animation
✅ Link: https://levelup.gitconnected.com/css-animation-patterns-d4d2759c5f2b
Cache API calls in Angular using Interceptor
#angular #interceptor
✅ Link: https://medium.com/@emadhassankhan/cache-api-calls-in-angular-using-interceptor-cc62e5d0d2c4
Auto unsubscribe in Angular 🔥
#angular #decorator
✅ Link: https://medium.com/@sniadek97/auto-unsubscribe-in-angular-bcda939d6158
Angular component dynamic import prioritization
#angular #ngComponentOutlet
✅ Link: https://medium.com/@geor.oikonomopoulos/angular-component-dynamic-import-prioritization-using-ngcomponentoutlet-d9681becba9b
Custom NgLet Directive
#angular #directive
✅ Link: https://medium.com/@tomer.babila/angular-data-transfer-observables-nglet-and-everything-in-between-66f1868f09fd
