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
πŸ“„ Angular 16 + Broadcast channel (Auth Fragments)

#angular #BroadcastChannel

βœ… Article Link: https://techshareskk.medium.com/angular-16-broadcast-channel-4049a7f46019
πŸ‘1
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