Skip to content

Abstract method called with callback #5591

Closed
@HarelM

Description

@HarelM

Hi,
I like typesctipt a lot and recently I updated my compiler to version 1.6.
I have some classes that were "abstract" and now I want to use the new keywork abstract
My question is as follow:
In order to scope the ``this` variable I used the following type of methods when calling them from JQuary/Angular promise:

export class SomeClass {
    public handleCallback = () => { 
        this.whatEver();
        //... 
    }
}

This will make sure that if I use this callback for an async operation the this variable will be correct.
How do I the same with abstract classes since I can't specify an abstract property?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions