Angular πŸ‡ΊπŸ‡¦ - practical notes
1.63K subscribers
1.6K photos
1 file
532 links
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!
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ“„ Angular Animations Tutorial: Route Transitions

#angular #ui_element #provideRouter #provideAnimations

export const routeTransition = trigger(
'routeTransition', [
transition('* => *', [
query(':enter', [
style({
opacity: 0,
scale: 0.9
}),
], { optional: true }),
query(':leave', [
animate('0.2s', style({
opacity: 0,
scale: 0.9
}))
], { optional: true }),
query(':enter', [
animate('0.2s', style({
opacity: 1,
scale: 1
}))
], { optional: true })
])
])


    <app-nav></app-nav>
<div
[@routeTransition]="data"
style="display: contents"
>
<router-outlet></router-outlet>
</div>


βœ… Article link

🎁 Code link
Please open Telegram to view this post
VIEW IN TELEGRAM
❀1πŸ‘1
πŸ“„ Composite Design Pattern

#js #patterns #composite

Composite: Basic Idea
The first thing we need to look at is the definition offered by the book from the Gang of Four:

β€œCompose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.”


βœ… Article link
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ“„ AI writing assistant

#js #react #ui_element

....Imagine you’ve created an amazing AI writing assistant giving helpful suggestions for writing engaging stories....


βœ… Article link
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ“„ When to Use the BroadcastChannel

#js #BroadcastChannel

/** Same Origin */

const channel = new BroadcastChannel("paymentChannel");

channel.postMessage("Payment Completed!");

channel.addEventListener(
"message",
(event) => {
const message = event.data;
console.log(message);
}
);


βœ… Article link
πŸ§ͺ ECMAScript 2024 (ES15): JS Features

#js #es #es2024 #es15 #withResolvers #groupBy #temporal #tuples #decorators

ECMAScript 2024 (ES15) is just around the corner, arriving in June 2024. This new version brings many exciting features that promise to simplify your JavaScript code and boost your productivity β€” giving you even more time to relax! Let’s dive into five of the most impactful additions.


βœ… Article link
Hello team! As promised, here is a custom smiley pack for the channel that will decorate the articles.

πŸŒπŸ’ β“‚οΈπŸš­β—οΈπŸ’˜β™ŒοΈπŸ…ΎοΈπŸ†š
πŸ©·β€οΈπŸ’›πŸ’šπŸ©΅πŸ’™πŸ–€πŸ©ΆπŸ€
πŸ€Žβ€οΈβ€πŸ”₯β€οΈβ€πŸ©Ήβ£οΈπŸ’•πŸ’žπŸ’“πŸ’—πŸ’–
πŸ”―πŸ•Žβ˜¦οΈπŸ›β›Žβ™ˆοΈβ™‰οΈβ™ŠοΈβ™‹οΈ
β˜’οΈβ˜£οΈπŸ“΄πŸ“³πŸˆΆπŸˆšοΈπŸˆΈπŸˆΊπŸˆ·οΈ
πŸš«πŸ’’β™¨οΈπŸš·πŸš―πŸš³πŸš±πŸ”žπŸ“΅
β•β”β€ΌοΈβ‰οΈπŸ”…πŸ”†γ€½οΈβš οΈπŸšΈ
πŸ”±βšœοΈπŸ”°β™»οΈβœ…πŸˆ―οΈπŸ’Ήβ‡οΈβœ³οΈ


You can thank us at the link below:

πŸ’΅ PayPal: luckystudydanit@gmail.com
πŸ’΅ SWIFT code: UNJSUAUKXXX
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘4❀1πŸ”₯1
🌐 Angular 18 : @let Operator

#angular #let

The @let operator allows you to define and assign variables directly within your Angular templates. This can help streamline your code, especially when working with asynchronous data. One of the biggest advantages is that it allows you to use the async pipe without worrying about unsubscribing from observables manually.


βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ’ β“‚οΈ Angular Apps with Nginx in Docker

#angular #docker #guide

βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2❀1
πŸ“΅ DOM Events and Pub/Sub

#js #patterns

Pub/Sub, which means Publish-Subscribe, uses a more structured approach. Instead of depending on DOM components, it uses a central message bus, similar to an events message board. Here is the summary:

- Publishers: These are the event announcers who broadcast messages (events) via the messaging bus.
- Subscribers: These are the visitors who registered to receive specific announcements (events). When a relevant interaction comes, subscribers get notified and can take action.


βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2