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
Description
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.