Roberto Heckers on LinkedIn: #angular #frontend | 11 comments (2024)

Roberto Heckers

Freelance software engineer @ Vattenfall | Angular fanatic 🅰️

  • Report this post

Transform values using Angular pipes inside TS files ⏩ In most cases, we use Angular pipes inside our HTML templates, but did you know you can also use them in your TS files⁉ Simply add the pipe to your providers array and use dependency injection to inject the pipe. Next, you can call the transform function on it and use it anywhere you want. #Angular #Frontend

  • Roberto Heckers on LinkedIn: #angular #frontend | 11 comments (2)

164

11 Comments

Like Comment

Victor Jansen

Software Engineer @ Itaú Unibanco | Angular | Typescript | Rust

8mo

  • Report this comment

I believe when we have these cases, we can use an adaptor instead of pipes injected into Ts.Depending on the case, one approach to follow is to create an Adaptor (with static classes) to transform the data and return the desired valueSo, we can use it in the ts file with no problems (following the style guide of angular), besides creating a pipe with this adaptor and managing the date correctly.I say this because pipes can control the change detection of angular on the template, and I don't see real use of pipes in the TS What do you think?

Like Reply

5Reactions 6Reactions

🇧🇪 Sam Vloeberghs

Angular & JavaScript Expert - Google Developer Expert

8mo

  • Report this comment

Although it's very true and useful for many pipes, the example is an approach I would not recommend personally, as for date transformations you could also use the exported `formatDate` from `@angular/common`.What I typically also recommend, when needing the transform functionality of a pipe, is to do the same. Export a pure function that does the inner work of transform and when you need it as a pipe, just wrap the function in the pipe.

Like Reply

4Reactions 5Reactions

pisey sen

Software Engineer at Bank Industry

8mo

  • Report this comment

Cool

Like Reply

1Reaction 2Reactions

Marcos Rodriguez Salvo

🚀 Frontend Developer @ Vodafone 💯Specialized in Angular and React.js

8mo

  • Report this comment

Cool! 🤩

Like Reply

1Reaction 2Reactions

Suman .

Frontend Developer | Angular | JavaScript | TypeScript | HTML | CSS | CI/CD

8mo

  • Report this comment

This will be my next work. Thanks for sharing

Like Reply

1Reaction 2Reactions

See more comments

To view or add a comment, sign in

More Relevant Posts

  • Ervis Trupja

    Software Engineer, Instructor | LinkedIn, Udemy, Pluralsight, YouTube

    • Report this post

    [ngClass] is an Angular directive that allows you to dynamically apply CSS classes to HTML elements based on certain conditions or expressions, enabling flexible and responsive styling. It provides a convenient way to toggle classes and apply conditional styles in your Angular applications.#Angular #LearnAngularhttps://lnkd.in/df3ZcNf9

    40. Dynamic Styling in Angular with [ngClass]

    https://www.youtube.com/

    12

    Like Comment

    To view or add a comment, sign in

  • Ankit Kaushik

    Certified Expert | React | Angular | Frontend Tech Lead | Web Development

    • Report this post

    Thanks for reposting Gergely Szerovay. Also with the merge of this PR: https://lnkd.in/ghH-ge57, bringing lazy first components to Angular will become super clean and easy..

    4

    Like Comment

    To view or add a comment, sign in

  • Duy Do Quoc

    Software Engineer | Fullstack Engineer

    • Report this post

    One of my summary note about View Encapsulation Mechanism in Angular.I'm still new to Angular, so feel free to give your opinion and correct me if i am wrong somewhere.#angular#angular16 #viewEncapsulationhttps://lnkd.in/gxSuwQA4

    View Encapsulation In Depth humble-order-891.notion.site

    6

    Like Comment

    To view or add a comment, sign in

  • Dharmen Shah

    Team Lead at Solvative, Creating angular-material.dev, Open Source Contributor, Writer

    • Report this post

    🤔 Ever wondered how to create Material Design component that is not provided by material.angular .io ?Worry not, we have got your back with new course📢 Announcing...Creating Angular Components with Material Components Webhttps://lnkd.in/dw3qdKzm#angular #materialdesign #webdevelopment #angularmaterial #typescript #scss

    • Roberto Heckers on LinkedIn: #angular #frontend | 11 comments (19)

    9

    Like Comment

    To view or add a comment, sign in

  • Dnyaneshwar Giri

    🌈 Senior Frontend Engineer | Web Development

    • Report this post

    Angular 18 is about to release 🚀It will come up with default support for Material 3If you're interested in trying it out or know it better.🌟 What new components available?⚛️ How Material 3 works with Angular? Below video is highly recommended 💯https://lnkd.in/dPezJtHN#angular #angular18 #frontend #javascript #angulardevelopers #webdevelopment #uidevelopment

    Angular Material 3 Guide | This Is Future of Design System

    https://www.youtube.com/

    6

    Like Comment

    To view or add a comment, sign in

  • Oguz Ol

    Freelancer - Software Engineer / Instructor

    • Report this post

    Angular 17.3.0 🚀 -> New features-TypeScript 5.4-Attribute injection on the host node-expose new output() API-outputFromObservable()-outputToObservable-outputFromObservable-outputToObservablehttps://lnkd.in/dFypFp9w#angular

    Release v17.3.0 · angular/angular github.com

    1

    Like Comment

    To view or add a comment, sign in

  • Christian Lüdemann

    I help companies build successful Angular applications through training and consulting

    • Report this post

    Since the recent Angular updates/"Angular Renaissance", many Angular experts agree on these practices in Angular components:📜 Inline template: Everything in the same file and motivates to SRP and breaking down to dumb components🎨 Tailwind CSS: Util CSS classes for faster styling and it includes design tokens for eg. colors, spacing, and responsiveness. Also motivates to break down to dumb components for reusability over semantic CSS classes.🚦 Use Signals (+ Signals inputs) for data binding and sync reactivity🧍♂️Standalone components + import what the component needs🕵️ Change detection OnPush: So only change detection is triggered locally to the Signal change💉 Inject function: To inject dependencies without the need for constructor injections and life cycle hooksThere are exceptions to every rule.Take what is useful and ignore what is not :)

    • Roberto Heckers on LinkedIn: #angular #frontend | 11 comments (27)

    122

    44 Comments

    Like Comment

    To view or add a comment, sign in

  • Michael Manoguerra

    Full Stack Developer in technologies including Python, Ruby, Typescript, CSS, and Postgres; Life Long Learner

    • Report this post

    Build an example form builder that dynamically injects custom input components into a reactive form in Angular 17. #angularhttps://lnkd.in/eanEwqtS

    Dynamic Form Builder mikeymanoguerra.github.io

    4

    Like Comment

    To view or add a comment, sign in

  • Ervis Trupja

    Software Engineer, Instructor | LinkedIn, Udemy, Pluralsight, YouTube

    • Report this post

    🚀 Angular Directives: Powering Up Your HTML! 🚀Angular directives are a game-changing feature that lets you extend HTML with custom behaviors and reusable components. They're the secret sauce to manipulating and controlling the behavior and appearance of elements in your Angular applications. 🎯https://lnkd.in/dgaJj_gvThere are two types of directives:1️⃣ Attribute Directives - They change the appearance or behavior of a DOM element. For instance, built-in directives like ngStyle and ngClass are perfect examples.🎥 Dive into ngStyle and learn how to dynamically set CSS styles on your HTML elements: https://lnkd.in/dSQ_3gbn🎥 Explore ngClass and discover how to dynamically add or remove CSS classes on your HTML elements: https://lnkd.in/df3ZcNf92️⃣ Structural Directives - They manipulate the DOM's layout by adding, removing, or replacing elements.But that's not all! Did you know you can create your own custom attribute directives in Angular? 🛠️https://lnkd.in/dhAKK8-P🎥 Learn how to create custom attribute directives in Angular: Watch Here🔍 Want a deep dive into Angular? Check out my comprehensive Angular course: https://lnkd.in/dFH3rpDE

    39. An Overview of Angular Directives

    https://www.youtube.com/

    16

    Like Comment

    To view or add a comment, sign in

  • Avinash Kumar

    Front-end Web Developer || HTML || CSS || JQuery || Bootstrap || JAVASCRIPT || MYSQL|| C || C++

    • Report this post

    Hii everyone today we learned create component by two method firstly use by angular CLI and secondly is manually.we also learned understanding the Role of AppModules & component declaration. # Declaration of component # component are the basic building block that angular offers.# we have one default component that is AppComponent. It is simply a class with some decorator ->@component# Each component has its own template (HTML),has its own styling (CSS) and its own business logic (.ts).# when we create own its component we use by angular cli command is ng g c component_name#angular #angulardeveloper #components#

    • Roberto Heckers on LinkedIn: #angular #frontend | 11 comments (37)

    4

    Like Comment

    To view or add a comment, sign in

Roberto Heckers on LinkedIn: #angular #frontend | 11 comments (39)

Roberto Heckers on LinkedIn: #angular #frontend | 11 comments (40)

7,045 followers

  • 668 Posts

View Profile

Follow

Explore topics

  • Sales
  • Marketing
  • Business Administration
  • HR Management
  • Content Management
  • Engineering
  • Soft Skills
  • See All
Roberto Heckers on LinkedIn: #angular #frontend | 11 comments (2024)

References

Top Articles
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 5714

Rating: 4.1 / 5 (42 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.