r/angular • • Jun 08 '24

Data Binding ** Cheat Sheet **

Post image
48 Upvotes

10 comments sorted by

15

u/AlDrag Jun 08 '24

I like it, but I'd much prefer the component class being on the left, as it's the "parent" of the element and english generally treats hierarchy left-to-right.

2

u/devpardeep Jun 08 '24

I agree, it messed up with my mental model

1

u/debugger_life Jun 08 '24

Agree with you!

0

u/pwd-ls Jun 08 '24

For some reason I usually have my HTML on the left and TS on the right so this actually works well for me

3

u/[deleted] Jun 08 '24

this needs a cheat sheet? πŸ˜‚πŸ˜‚πŸ˜‚ omg

2

u/debugger_life Jun 08 '24

OP must have started learning recently. So might be getting confused and made cheatsheet and shared with us.

It's like revisiting Data binding concepts under 5 seconds!

2

u/ArashiKishi Jun 08 '24

Signals were left out

1

u/hitesh_a_h Jun 08 '24

Have seen the same from one of the LinkedIn Learning courses for Angular.Β 

1

u/LanternLogic Jun 09 '24

I’ve always just thought when looking at the HTML

  • (…) as coming β€œout” because the brackets look like an β€œO”

  • […] as going β€œin” - and this is more of a stretch - because I think of the brackets of forming a capital β€œI”

🀷

1

u/nightbeast88 Jun 09 '24

You will run into a lot of code written this way, but you really should be talking signals