Angular πΊπ¦ - practical notes
Open in 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!
Show more1 631
Subscribers
No data24 hours
+17 days
No data30 days
Posts Archive
Required Input in Angular v.16
#angular #input
π© > Angular 16
β
Link: https://akhilabhinav.medium.com/required-input-in-angular-v-16-344e5987d759
Functional Route Guards in Angular
#angular #guard
π© > Angular 15
β
Link: https://medium.com/ngconf/functional-route-guards-in-angular-8829f0e4ca5c
TypeScript 5.0 Decorators
π The TypeScript 5.0 release, officially supports the Phase 3 decorator proposal. The proposal has four stages, which means it stabilizes quickly without major changes to the API. In this article, we will explore based on these stable APIs.
#typescript #decorators
β
Link: https://medium.com/@islizeqiang/a-quick-guide-to-typescript-5-0-decorators-d06cabe09e8c
Content Projection with Dynamic components in Angular
#angular #viewContainerRef #directive #ng_content
β
Link: https://medium.com/@zeeshankhan8838/content-projection-through-dynamic-components-in-angular-e6465c728e20
Interceptors in A15
#angular #interceptor
π© > Angular 15
β
Link: https://blog.herodevs.com/angular-15-introduces-functional-http-interceptors-59299cce60bf
Angular resolvers: old and new approaches
#angular #resolver
π© > Angular 16
β
Link: https://itnext.io/bind-route-info-to-component-inputs-new-router-feature-1d747e559dc4
Appβs Performance by Wrapping Functions Inside a Pipe
#angular #pipe
β
Link: https://medium.com/ngconf/boost-your-apps-performance-by-wrapping-your-functions-inside-a-pipe-7e889a901d1d
Angular "hooks" with
inject()
#angular #renderer2 #inject
π© > Angular 14
β
Link: https://medium.com/@kamil.galek/mythical-angular-what-you-can-do-with-angular-14-inject-function-a22786924bfeSanitization Pipe in Angular
#angular #pipe #DomSanitizer
β
Link: https://medium.com/@zeeshankhan8838/best-practices-in-angular-b9e8f88ee1fa
withComponentInputBinding in Angular
Angular v16 has introduced a powerful new feature that enables the automatic binding of router information, such as query parameters, path parameters, static data, and resolver data to a routed componentβs inputs.
#angular #routing #withComponentInputBinding
π© > Angular 16
β
Link: https://netbasal.com/binding-router-information-to-routed-component-inputs-in-angular-78ee92f63e64Command Pattern in TypeScript
#ts #patterns #command
β
Link: https://levelup.gitconnected.com/design-patterns-command-pattern-in-typescript-10b3162e3bee
Factory async function with ability of cancelling
#js #promise #AbortController
function asyncWithAbort(promiseFn, signal){
if (signal?.aborted){
return Promise.reject(new DOMException("Aborted", "AbortError"));
}
return new Promise((resolve, reject) => {
promiseFn().then(resovle).catch(reject);
signal?.addEventListener("abort", () => {
reject(new DOMException("Aborted", "AbortError"));
});
});
}
β
Link: https://javascript.plainenglish.io/best-practices-for-using-abortcontroller-87892b72d07eAsync Validator in Angular
#angular #validator #InjectionToken
π© > Angular 14
β
Link: https://netbasal.com/optimizing-angular-form-validation-with-lazy-load-61265536a6f2
Terminating Promise
#js #promise #AbortController
β
Link: https://javascript.plainenglish.io/best-practices-for-using-abortcontroller-87892b72d07e
Table Sort Directive in Angular
#angular #directive
β
Link: https://stackblitz.com/edit/angular-sz9lie?file=src%2Fapp%2Ftable-sort.directive.ts
Canceling DOM Events
#js #addEventListener #AbortController
β
Link: https://javascript.plainenglish.io/best-practices-for-using-abortcontroller-87892b72d07e
Canceling Requests in JS...TS
#js #fetch #AbortController
β
Link: https://javascript.plainenglish.io/best-practices-for-using-abortcontroller-87892b72d07e
Parallax scrolling in CSS
#css #parallax
β
Link: https://codepen.io/keithclark/pen/ndEygj
NGRX immutability with Immer
#angular #ngrx #immer
β οΈ Third-Party Lib
β
Link: https://medium.com/@daniel.glejzner/make-your-angular-ngrx-reducers-an-eye-candy-using-fantastic-library-f4ac41aea6af
CSS gradient
#css #keyframes #gradient
β
Link: https://codepen.io/mitchobert/pen/ogYBLo
