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
πŸ“„ 1/3 100+ FREE Resources Every Web Developer Must Try

#frontend #info

FREE Resources to Learn Web Development πŸ”₯

Websites: freeCodeCamp, MDN Web Docs, W3Schools, Scrimba, Codecademy, TheOdinProject, Frontend Mentor, Javascript30, Coursera, Khan Academy

YouTube Channels: Traversy Media, The Net Ninja, Code with Harry (Hindi), Web Dev Simplified, Coder Coder, The Coding Train, FreeCodeCamp

FREE Hosting Platforms for Your Websites πŸ”₯

β€” Netlify: Deploy your web projects with ease.
β€” Render: Host web applications and static sites effortlessly.
β€” GitHub Pages: Host your static websites directly from your GitHub repository.
β€” Firebase Hosting: Scale your web apps effortlessly with Firebase.
β€” Vercel: Deploy websites and applications with automatic deployments.
β€” Cyclic.sh: Host your static sites with zero configuration.
β€” Appwrite: Open-source backend server for web and mobile developers.
β€” Supabase: Build modern apps with a scalable backend.
β€” InfinityFree: Free and unlimited web hosting with PHP, MySQL, and more.
β€” Surge: Static web publishing for front-end developers.

FREE APIs for Your Projects πŸ”₯

β€” OpenWeatherMap API: Access current weather data for any location.
β€” News API: Retrieve live news articles from various sources.
β€” REST Countries API: Get information about countries worldwide.
β€” Chuck Norris Jokes API: Lighten up your projects with Chuck Norris jokes.
β€” Open Food Facts API: Access food product information and ingredients.
β€” Reddit API: Fetch Reddit data, including posts and comments.
β€” OneDrive API: Manage files and folders on Microsoft OneDrive.
β€” Dogs API: Bring adorable dog images and information to your projects.
β€” GIPHY API: Integrate GIFs and stickers into your applications.
β€” OMDb API: Access a database of movies and TV shows.
β€” VirusTotal API: Analyze suspicious files and URLs for malware.
β€” PokeAPI: Retrieve PokΓ©mon data for your gaming-related projects.
β€” NASA API: Access a wealth of NASA data, including imagery and information.
πŸ‘5πŸ”₯1
πŸ“„ 2/3 100+ FREE Resources Every Web Developer Must Try

#frontend #info

FREE Sites for Vectors, Images, and Illustrations πŸ”₯

β€” Freepik: Discover free vectors, photos, PSDs, and icons.
β€” Vecteezy: Find high-quality vector art, graphics, and illustrations.
β€” Unsplash: Access over a million free high-resolution photos.
β€” Pixabay: Explore a vast library of free images and videos.
β€” Flaticon: Download free icons, SVG, PSD, PNG, EPS format, or as ICON FONT.
β€” Openclipart: Share and use free clipart and images.
β€” SVGRepo: Download SVGs for free.
β€” Vectorportal: Free vectors, clip art, and icons.
β€” SVGBackgrounds: Customizable SVG patterns and backgrounds.
β€” FreeDesignFile: High-quality graphic design resources.
β€” Pexels: Find free stock photos and videos shared by talented creators.
β€” Vectorian: Download royalty-free vector art, stock photos, and stock footage.

FREE Icons for Your Projects πŸ”₯

FontAwesome, Flaticon, Iconfinder, Material Icons, Icons8, BoxIcons, Feather Icons, IcoFont, SVGHUB, Tabler Icons, Iconsmind, Iconmonstr, SVGRepo

FREE Fonts for Your Projects πŸ”₯

Google Fonts,1001FreeFonts, Fontjoy, Fontsly, FontSpace, AbstractFonts, FontZone, DevFonts, DaFont, FontSquirrel, FontFabric

FREE Cheat Sheet SitesπŸ”₯

β€” HTML Cheat Sheet: Quick reference guide for HTML elements and attributes.
β€” CSS Cheat Sheet: Comprehensive guide to CSS properties and selectors.
β€” JavaScript Cheat Sheet: Handy reference for JavaScript syntax and concepts.
β€” Git Cheat Sheet: Essential commands and workflows for Git.
β€” Markdown Cheat Sheet: Markdown syntax guide for creating rich text formatting.
β€” React Cheat Sheet: Quick overview of React concepts and syntax.
β€” Learn x in y minutes: Concise tutorials to learn various programming languages and tools quickly.
β€” SQL Cheat Sheet: Comprehensive SQL commands and queries reference.
β€” OverAPI: Collection of cheat sheets for various programming languages and frameworks.
πŸ‘2
πŸ“„ 3/3 100+ FREE Resources Every Web Developer Must Try

#frontend #info

FREE Sites for HTML/CSS Templates πŸ”₯

HTML5UP, HTMLRev, Free-CSS, Templated, FreeHTML5, Start, Bootstrap, Bootswatch, BootstrapTaste, Cruip, Tooplate, HTML5xCSS3

Learn CSS by Playing Games πŸ”₯

CSS Diner: Practice CSS selectors with a fun game.
Flexbox Froggy: Learn CSS Flexbox by playing this game.
Grid Garden: Master CSS Grid layout by playing this game.
Flexbox Defense: A game to learn CSS Flexbox.
CSSBattle: Compete against others by writing CSS code.
Flexbox Zombies: Learn CSS Flexbox by playing this game.

FREE Code Editors πŸ”₯

β€” Visual Studio Code (VS Code)
β€” Sublime Text
β€” Brackets
β€” Vim

JavaScript Animation Libraries πŸ”₯

β€” Anime.js: Lightweight JavaScript animation library.
β€” ScrollReveal.js: Easily reveal elements as they enter the viewport.
β€” Popmotion: A functional, flexible JavaScript motion library.
β€” AniJS: Declarative handling library for CSS animations.
β€” Wow.js: Reveal CSS animation as you scroll down a page.
β€” Typed.js: A JavaScript library that types.
β€” Velocity.js: Accelerated JavaScript animation.
β€” GSAP: Professional-grade animation for the modern web.
πŸ‘4❀2πŸ”₯1
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ“„ Customizable Angular animations

#angular #animations #ui_element

...A component with customizable animations might look like this...


// collapse.ts

const closedStyle = style({
height: 0
});

const openStyle = style({
height: '*'
});

const timings = '{{duration}}ms linear';

const defOptions: AnimationOptions = {
params: {
duration: 300
}
};

export const collapse = trigger('collapse', [
transition(
':enter',
animation([closedStyle, animate(animateTimings, openStyle)]),
defaultOptions
),
transition(
':leave',
animation([openStyle, animate(animateTimings, closedStyle)]),
defaultOptions
),
]);


// bonus.component.ts

@Component({
animations: [collapse],
host: {
'[@collapse]': 'animationOptions',
},
})
export class BonusComponent implements OnInit {
@Input() public duration = 300;
public options!: IAnimationOptions<string>

public ngOnInit(): void {
this.options = {
value: '_',
params: {
duration: this.duration
},
};
}
}


βœ… Article link
πŸ‘3❀1πŸ”₯1
πŸ“„ Real Examples of Promise Patterns

#js #promise

β€” Promise.all() is ideal when you have multiple asynchronous operations that are independent of each other and need to be performed concurrently.

β€” Promise.race() Use Promise.race() when you need to respond to whichever promise resolves or rejects first. It's useful in scenarios like timeout implementations.

β€” Promise.allSettled() is useful when you need to wait for all promises to settle, regardless of whether they resolve or reject.

β€” Promise.any() returns the first promise that resolves and ignores rejections unless all promises reject.


βœ… Article link
❀1πŸ‘1πŸ”₯1
πŸ“„ Angular Named Router Outlets

#angular #router #outlets

<!-- wrapper-layout.component.html -->

<div class="container">
<div class="row">
<div>
<left-side></left-side>
</div>
<div>
<router-outlet
name="showright"
></router-outlet>
</div>
</div>
</div>


/** routing.module.ts */

{
path: 'connect',
component: WrapperLayoutComponent,
children: [
{
path: '',
component: RightSideComponent,
outlet: 'showright'
},
]
},



// component navigation action

this.router.navigate([
'/connect',
{ outlets: { showright: ['user-info'] } }
]);

βœ… Article link
πŸ‘3❀1πŸ”₯1
πŸ“„ Angular with Electron: Building Cross-Platform Desktop Applications

#angular #electron #guide

Combining Angular with Electron offers a powerful framework for building cross-platform desktop applications. Electron, known for its ability to create desktop applications using web technologies, seamlessly integrates with Angular, a popular front-end framework. This fusion provides developers with a robust platform to build feature-rich desktop applications leveraging their web development skills. In this article, we’ll delve into the integration of Angular with Electron, covering various scenarios and providing detailed code examples.


βœ… Article link
πŸ‘4❀1πŸ”₯1
πŸ€“ Angular for Server-Side Rendering (SSR)

#angular #universal #ssr #guide

...Here’s a step-by-step guide to get you started with Server-Side Rendering (SSR) using Angular Universal...


βœ… Article link
❀1πŸ”₯1πŸ₯°1
πŸ“„ 1/8 JS Reactive Patterns: PubSub or Publish-Subscribe

#js #patterns #pubsub

PubSub is one of the most commonly used and fundamental reactivity patterns. The Publisher is responsible for notifying Subscribers about the updates and the Subscriber receives those updates and can react in response.

One popular example of its usage is Redux. This popular state management library is based on this pattern (or more specifically, the Flux architecture). Things work pretty simple in the context of Redux:

β€” Publisher: The store acts as the publisher. When an action is dispatched, the store notifies all the subscribed components about the state change.

β€” Subscriber: UI Components in the application are the subscribers. They subscribe to the Redux store and receive updates whenever the state changes.
πŸ‘3❀1πŸ”₯1
πŸ“„ 2/8 JS Reactive Patterns: Custom Event Targets

#js #patterns #customEvent

If you prefer not to dispatch events globally on the window object, you can create your own event target.

By extending the native EventTarget class, you can dispatch events to a new instance of it. This ensures that your events are triggered only on the new class itself, avoiding global propagation. Moreover, you have the flexibility to attach handlers directly to this specific instance.
πŸ‘4
πŸ“„ 3/8 JS Reactive Patterns: Observer

#js #patterns #observer

The Observer pattern is really similar to PubSub. You subscribe to the Subject and then it notifies its subscribers (Observers) about changes, allowing them to react accordingly. This pattern plays a significant role in building decoupled and flexible architecture.
πŸ‘1
πŸ“„ 4/8 JS Reactive Patterns: Reactive Properties With Proxy

#js #patterns #proxy

If you want to react to changes in objects, Proxy is the way to go. It lets us achieve reactivity when setting or getting values of object fields.
πŸ‘1
πŸ“„ 5/8 JS Reactive Patterns: Individual Object Properties and Reactivity

#js #patterns #defineProperty

If you don’t need to track all the fields in the objects, you can choose the specific one using Object.defineProperty or group of them with Object.defineProperties.