Component

new Component(model)

Wrapper of a controller and a model

Parameters:
NameTypeDescription
modelModel

model of this component

Members

controller :Controller|null

component controller, is initialized by a context

Type:

model :Model

component model

Type:

(static) TYPE :string

Type:
  • string

Methods

getController() → {Controller}

Returns:
  • controller of component
Type: 
Controller

getModel() → {Model}

Returns:
  • model of component
Type: 
Model

initController(controller)

Parameters:
NameTypeDescription
controllerController

controller of this component