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
πŸ’™ Render Angular Components in Markdown

#angular #markdown #guide

βœ… Article link 🎁 Code Link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
🌐 Signals communication between components

#angular #signals #guide

βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
❀️ πŸ”± Implementing SSR with Angular to Improve SEO

#angular #ssr #guide

What is Server-Side Rendering (SSR) ?

SSR is the process of rendering web pages on the server instead of in the browser. With SSR, the Angular application sends fully rendered HTML from the server to the client, instead of a set of JavaScript files that the browser needs to process to build the page.

Benefits of SSR for SEO

1 β€” Fast Initial Load: Server-rendered pages load faster, providing a better user experience.

2 β€” Improved Indexing: Search engines can index server-rendered content more effectively than client-rendered content.

3 β€” Enhanced Link Sharing: Links shared on social media display rich and informative previews.


βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3
This media is not supported in your browser
VIEW IN TELEGRAM
❀️ πŸ€“ Angular Animations Functions

#angular #animations #ui_element

Example explanation:

Triggers (trigger):
parentTrigger: Defines animations for the parent element.
childTrigger: Defines animations for the child elements.

States (state):
parentTrigger: Has the states start and end.
childTrigger: Has the states visible and hidden.

Styles (style):
Defines final and intermediate styles for different states and transitions.

Transitions (transition):
Defines how the animation should occur between states.

Animate (animate):
Defines the duration and timing function of the animations.

Keyframes (keyframes):|
Used in the transition from visible to hidden in the child elements to create detailed intermediate animations.

Group (group):
Used in the transition from start to end in parentTrigger to animate multiple properties in parallel.

Sequence (sequence):
Used in the transition from end to start in parentTrigger to animate multiple properties in sequence.

Query (query):
Used in the transition from hidden to visible in childTrigger to select and animate child elements.

Stagger (stagger):
Used with query to apply a delay between the animations of the child elements, creating a cascading effect.


βœ… Article link 🎁 Code Link
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2
πŸ“„ How to design user-friendly forms: Colours

#guide

Colours will not just make your form look better or more engaging, but they will also make it easier for the user to get through each section faster.

Different colours can be used for different purposes. As mentioned before, red is often used to indicate any errors on the form while light grey can used for any disabled fields that we are not allowed to change (see the example below). A soft tone can also be applied to the whole form background to help the user identify each empty field. You can then use prominent and contrasting colours to make users notice action buttons like β€œProceed to payment”, β€œSubmit” or β€œOK”.
🌐 Optimize Angular Apps with Unused Standalone Imports Diagnostic in v19

#angular #standalone

One of the most anticipated features since the introduction of standalone components is the ability to detect whether a component or directive imported into a component is actually being used. In Angular v19, this need has finally been addressed with the addition of a diagnostic for unused standalone imports.

The unused import diagnostic is reported as a warning, giving developers a heads-up without blocking the build. This can be especially helpful during development, allowing teams to catch unused imports early in the process. If needed, the diagnostic behavior can be disabled using the unusedStandaloneImports option in the tsconfig.json.


βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘1
πŸ†š CSS class naming conventions

#css #bem #smaCSS #ooCSS

βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€οΈπŸ“„ How to Implement Compodoc in Your Angular Project

#angular #compodoc #guide

Tips to Maximize the Use of Compodoc

β€” Keep Documentation Updated: Regenerate the documentation whenever you change the code.

β€” CI/CD Integration: Consider integrating Compodoc into the CI/CD pipeline to automate documentation generation.

β€” Consistent JSDoc Comments: Use JSDoc comments consistently to enrich the documentation.


βœ… Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM