Evgeniy OZ

Results 131 comments of Evgeniy OZ

Example from an existing app, simplified: ```ts export class ReviewGradeStarsComponent { readonly $initialGrade = input(0, { alias: 'grade' }); private readonly $grade = linkedSignal(this.$initialGrade); readonly gradeChange = outputFromObservable(toObservable(this.$grade)); protected clickGrade(grade:...

> otherwise it will mutate what we do not want to be mutated.

`outputFromSignal()` could do exactly the same as `model()` does, except we could pick any name for the output. `model()` emits every "set", this is an important difference between [model] and...

I believe on the framework level it is possible to build `outputFromSignal()` the same way :) But in user code, I don't think it's possible (although I could be wrong...

> and not allow devs to use them LOL

https://github.com/angular/angular/issues/59198 only proves that Change Detection (or synchronization) is still not reliable enough. It should work consistently, not just when events are emitted at a moment that’s convenient for Change...

> In our code base In our code base we don't use `effect()`. Great argument to drop it, right?

No, you are wrong. Example: HTTP request updates globally shared data. The first request was initiated and took 25 seconds to execute. After 10 seconds, the user navigates to another...

@DaSchTour if these host directives have required inputs, you’ll get another surprise. For these cases, it is better to postpone migration, in my opinion.

@jnizet do you think this is better? ```ts @Component({ template: `{{ rnd() }}` }) export class Example { protected rnd() { return Math.random() * 1000; } } ``` You can...