Тёмный

Observables are WAY easier than they seem 

Joshua Morony
Подписаться 74 тыс.
Просмотров 7 тыс.
50% 1

My Angular course: angularstart.com/
Observables can seem like some sort of complex magical constructs that "stream" data, and perhaps it invokes thoughts of managing scenarios like streaming video data or web sockets. But... the fundamental concept is not all that complex, and can be built with some pretty simple functions.
What is an Observable (free lesson): angularstart.com/modules/intr...
Get weekly content and tips exclusive to my newsletter: mobirony.ck.page/4a331b9076
Want to build mobile apps with Angular?: ionicstart.com
0:00 Introduction
0:24 Creating a basic observable
1:34 What about subscribing?
2:31 Taking it further
#angular #observables #rxjs
- More tutorials: modernangular.com
- Follow me on Twitter: / joshuamorony

Опубликовано:

 

16 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@dongphuongtran
@dongphuongtran Месяц назад
Can you please add release notes with what you updated in angularstart? It will be helpful in case you update the article that I have already read and I can read it again 😁
@JoshuaMorony
@JoshuaMorony Месяц назад
Ah yes this is a good point I'll add this, but for v18 the only entirely new lesson is this one which covers signal APIs that were not present previously: angularstart.com/modules/basic-angular-concepts/7 The rest of the updates have mostly been updating all the code to make use of the new signal based APIs where they were previously using the old APIs (e.g. @Input, @ViewChild etc)
@MonaCodeLisa
@MonaCodeLisa Месяц назад
WOW 1 THOUSAND MEMBERS of the course 👏👏👏👏👏 that's wonderful 😃 very cool video, thank you, great to have as a reference as I will be returning to re-watch it from time to time
@tarquin161234
@tarquin161234 Месяц назад
@JoshuaMorony I have used signals but prefer to just carry on using rxjs alone since I don't feel I gain anything. A reactive system needs to support asynchronous operations, which signals do not do. Combining signals feels like jamming a square peg into a round hole. It feels like a pointless change to an already perfect way of front-end programming. I think the only reason signals were introduced was because the Angular team see that most people don't want to learn rxjs. Great; instead of improving, lets all adopt an inferior system. There's even talk that Angular are aiming to remove rxjs completely from the core Angular packages. I am really disappointed that this is the direction the Angular team are taking this direction as I was so happy with Angular the way it was. What are your thoughts on this?
@valcron-1000
@valcron-1000 Месяц назад
100% agree. I shared the same opinion back when signals were introduced. They don't solve anything that rxjs doesn't already solve (except maybe for "glitches" but those can be worked around in rxjs) but now you have a fractured ecosystem where every Angular app becomes a mess of mutation with zonejs + signals + rxjs. Unfortunately the Angular team will keep adding changes to the point where it will become a mix of React/Vue/Svelte instead of having its own identity.
@JoshuaMorony
@JoshuaMorony Месяц назад
I got into some thoughts around this in this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-iA6iyoantuo.html but my general opinion is that signals are a better way to represent state, and observables are a better way to handle events, and the flow I've landed on in my apps of starting with observables which flow through to signals to be consumed by the components I quite like/am happy with. But if you do go the pure RxJS approach I don't think there's anything wrong with that (generally speaking, a pure RxJS approach is going to be fine, a pure signals approach might be questionable)
@tarquin161234
@tarquin161234 Месяц назад
@@JoshuaMorony thanks man
@mnemanja
@mnemanja Месяц назад
@@valcron-1000 Signals may become an integral part of Javascript, FYI, so there's not running away from it. It looks like they're here to stay.
@potatopower2144
@potatopower2144 Месяц назад
Would a strong grasp of the material in this course be enough to get an entry level role using Angular? I use Java Spring backend, MySql, Html, Css, JS, and some TS with Angular on frontend. I'm just not sure when I'll ever be good enough. I have a portfolio site, 5 apps deployed to AWS EC2. I have a 6 month window before moving back to the States with my family and want to find work ASAP.
@JoshuaMorony
@JoshuaMorony Месяц назад
I don't know your situation, nor do I really know the current job market first hand as I have not had to deal with it any time recently, but my guess is that it sounds like you already would "qualify" for an entry level role (maybe beyond that), and maybe the issue lies somewhere other than needing to know more stuff to land a role (likely a big part of the problem is that from what I have heard the market for entry level positions is very competitive/difficult at the moment). This isn't particularly useful advice, because I don't think I have good advice to give on how to land a job in today's market, but I did want to make it clear that I don't think going through my course is necessarily going to help you land a job. That said, at least from my perspective, someone who has a strong grasp of all the topics covered in the course would be among the best Angular developers (but also, that would come through repeated application of these concepts over a period of time to develop that "strong grasp"). But ultimately, even if you have all these skills, it still might be difficult to land a job without prior positions/network.
@TheSuperAllumette
@TheSuperAllumette Месяц назад
Arf, just bought it yesterday 😢
@JoshuaMorony
@JoshuaMorony Месяц назад
Get 20% off my Angular course: angularstart.com/ (expires 48 hours from time of this comment)
@biovawan
@biovawan Месяц назад
Coupon doesn't apply
@JoshuaMorony
@JoshuaMorony Месяц назад
@@biovawan there isn't any coupon code required, the price is just reduced by default during the sale
@AndresJimenezS
@AndresJimenezS Месяц назад
you should take a bit look to Effect ts to give typescript beyond
Далее
ngTemplateOutlet is WAY more useful than I realised
16:36
The Blazor Competitor is Here!
15:08
Просмотров 66 тыс.
React Compiler: It's Stranger Than You Think
27:37
Просмотров 33 тыс.
Go | 6 Unique Techniques
9:04
Просмотров 1,1 тыс.
The perfect use case for RxJS... violins?
9:26
Просмотров 1,3 тыс.
The mindset you need for a DECLARATIVE code refactor
7:56
Here's what I've figured out about Angular signals
8:33
Why Signals Are Better Than React Hooks
16:30
Просмотров 462 тыс.
The "SQL In React" Drama
28:32
Просмотров 61 тыс.
Reactive Contexts
12:10
Просмотров 2,4 тыс.
We can now transition to and from display: none
21:20