How to Create Getter and Setter Methods in TypeScript - TypeScript Tutorial

preview_player
Показать описание
In this tutorial we're going to talk about that how to create getter and setter methods in TypeScript language.
TypeScript tutorial.
Рекомендации по теме
Комментарии
Автор

I don’t understand. You say that the goal is that we don’t want the users to randomly change the values. But then you provide setters which makes it possible to do exactly that.

What am I missing here? Thanks!

dawid_dahl
Автор

Change playback speed to 1.5x. You’re welcome.

SerendipitousWizard
Автор

Hi if the consumer of this is Angular. Wouldn't that have a performance impact because of Angular change detection (unless you make it manual)?

edgarsantos