1×
Become a member
to unlock all features
Autoplay

    Dynamically initialize class properties using TypeScript decorators

    typescriptTypeScript
    ^3.0.0

    Decorators are a powerful feature of TypeScript that allow for efficient and readable abstractions when used correctly. In this lesson we will look at how we can use decorators to initialize properties of a class to promises that will make GET requests to certain URLs. We will also look at chaining multiple decorators to create powerful and versatile abstractions.