Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Why is super() called twice in the sample of Todo app?  #116

Closed
@fspillner

Description

@fspillner

Hi,

I'm new related to TypeScript. I try to understand the sample code like here:

https://github.com/Microsoft/TypeScriptSamples/blob/master/todomvc/js/todos.ts#L204

I wonder why you don't call super(options) in the first line of the constructor. Instead of that you call super() with no arguments and a few lines later super(options) with arguments again.

Can you explain me why?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions