Benedikt Starzengruber

Angular tips/tricks you can use from tomorrow on

Are function calls in your templates slowing your app down? Discover a clever, reusable pipe-based solution.

Angular tips/tricks you can use from tomorrow on
#1about 7 minutes

Create custom RxJS operators for cleaner data streams

Abstract repetitive or complex RxJS logic into custom operators like `isTruthy` or `filterArray` to improve code readability and maintainability.

#2about 7 minutes

Avoid performance issues from template function calls

Use a generic, pure wrapper pipe to call component methods from the template without triggering excessive change detection cycles.

#3about 6 minutes

Style native browser scrollbars using CSS pseudo-elements

Customize the appearance of native scrollbars using WebKit and Firefox-specific CSS properties to avoid third-party libraries and maintain performance.

#4about 6 minutes

Implement responsive logic with the ResizeObserver API

Create a reusable Angular directive that uses the ResizeObserver API to emit events when an element's size changes, enabling complex responsive layouts.

#5about 6 minutes

Lazy load content on demand with IntersectionObserver

Use the IntersectionObserver API within a structural directive to defer rendering components or loading data until they scroll into the viewport.

#6about 5 minutes

Reduce bundle size by lazy loading components

Use Webpack's dynamic `import()` syntax and Single Component Angular Modules (SCAMs) to lazy load components and reduce the initial main bundle size.

#7about 2 minutes

Preload lazy-loaded components on hover for better UX

Optimize the user experience of lazy-loaded components by pre-fetching the JavaScript bundle on a `mouseenter` event before the user clicks.

#8about 9 minutes

Recap of tips and audience Q&A

A summary of the six practical tips is provided, followed by a Q&A session covering standalone components, Angular's ecosystem, and IntersectionObserver usage.

Related jobs
Jobs that call for the skills explored in this talk.

job ad

Saby Company
Delebio, Italy

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
AP
Anto Pranjić
11 Tips to Make The Most Out of Your First World Congress 
The world’s most awesome event for developers is taking place in less than a month! It’s been far too long since the last time we met in person, but that’s only going to make this year’s WeAreDevelopers World Congress a truly special experience. Conf...
11 Tips to Make The Most Out of Your First World Congress 
CH
Chris Heilmann
Dev Digest 136 - No JS(on) of mine
News and ArticlesDouglas Crockford is our featured video, so let's talk about evolving JavaScript and all things JSON. Judicious JSON explains all the weird things in it, you can learn why it can be incredibly slow, people wonder what even is a JSON ...
Dev Digest 136 - No JS(on) of mine

From learning to earning

Jobs that call for the skills explored in this talk.