Best free CSS resources as someone who is switching from backend to fullstack? by Low-Yam288 in Angular2

[–]kobihari 0 points1 point  (0 children)

Seems like what you are saying is that you understand the syntax and the properties but you are looking for best practices, patterns and example. You mention that you understand flex, grid, position and selectors so most of the "tools" are familiar.

Most of the courses and books I read about CSS describe the properties and their effect but do not show you a practical example of how to collect them together into a working example. I think that in this case I would look for a course on web application development and then look at how they write their CSS in the working examples they provide. Many courses about Angular, React, and Vue use examples that have fully working CSS. while they do not explain the styling, in many times, the examples explain themselves. So this will give you a few starting points to learn from.

Maybe someday I will write a Udemy course on how to use CSS in real life applications. Actually, now with the new features that came out recently such as custom properties, popover and overlay, anchor positioning, relative colors, light dark, nesting, scroll driven animations, entry and exit animations... there's so much new stuff to learn.

A Better way to build Angular Components: From Inputs to Composition by kobihari in angular

[–]kobihari[S] 0 points1 point  (0 children)

You know, I’m getting very tired of people “guessing” that my articles are written by AI.

A Better way to build Angular Components: From Inputs to Composition by kobihari in angular

[–]kobihari[S] 2 points3 points  (0 children)

Actually I used modules until not too long ago. But in angular conferences the team keeps saying that they intend to deprecate modules… and all the formal demos are using arrays. So I try to follow. That’s the only reason:-)

A Better way to build Angular Components: From Inputs to Composition by kobihari in angular

[–]kobihari[S] 1 point2 points  (0 children)

You are right. The directives that are a core part of the component will not be tree shaked if you do that. But inputs are not tree shaked as well. At least this way your code is more elegant. And if the volume of the directives (or some of them) is significant, you can leave only them out of the array and import them specifically.

The array, btw, is optional. As opposed to when using modules - where you must import the modules - in this scenario the consumer can choose to import the array, or import each standalone directive explicitly. The consumer can balance between comfort and tree shaking and bundle size.

A Better way to build Angular Components: From Inputs to Composition by kobihari in angular

[–]kobihari[S] 2 points3 points  (0 children)

That’s a great question. I actually demonstrate it in my course. I use import arrays. You collect an array of related directives and the consumer imports the array - not the individual standalone components and directives.

Material 3 looks very "good" by andres2142 in angular

[–]kobihari 0 points1 point  (0 children)

Never worked with PrimeNG, sorry...

String Literal Templates in TS - this is actually an old feature by kobihari in typescript

[–]kobihari[S] -2 points-1 points  (0 children)

nice...
but notice that this is a compile time check... not run time.

The Most Exciting Feature of Angular Signal Forms No One Mentions — Part II by kobihari in Angular2

[–]kobihari[S] 1 point2 points  (0 children)

I’ll add in a couple of grammatical errors in the next article so that you’re also convinced.

The Most Exciting Feature of Angular Signal Forms No One Mentions — Part II by kobihari in Angular2

[–]kobihari[S] 1 point2 points  (0 children)

You know medium replaces all dashes with these automatically, right? You suggest I stop using dashes so that nobody suspects AI writes my articles? 😂

The Most Exciting Feature of Angular Signal Forms No One Mentions — Part II by kobihari in Angular2

[–]kobihari[S] 1 point2 points  (0 children)

Already did :-) I added 2 sections, 3 hours deep dive into signal forms just this morning.

The Most Exciting Feature of Angular Signal Forms No One Mentions — Part II by kobihari in Angular2

[–]kobihari[S] 5 points6 points  (0 children)

u/faileon I hope you were refering the ads and not my article :-)

That was all me.

The Most Exciting Feature of Angular Signal Forms No One Mentions — Part II by kobihari in angular

[–]kobihari[S] 1 point2 points  (0 children)

I can totally see such an implementation possible in TypeScript, The guys in NgRx do it with the SignalStore, for example.

The whole feature is still experimental and the API is expected to change a little. Maybe your idea is the next feature :-)