Having another class as a static property on a class

后端 未结 2 1298
终归单人心
终归单人心 2021-01-22 12:15

Read the example below*, but don\'t pay too much attention to the EventEmitter inheritance, please – it just shows the utility of the class syntax.

2条回答
  •  没有蜡笔的小新
    2021-01-22 13:02

    Should I just split it up and use a class expression?

    Yes, that's the way to go. If you insist on using a declaration, you'd have to make a App.Page = Page assignment afterwards.

提交回复
热议问题