src/openui5-todo-app/Component.js
/**
       * The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
       * @public
       * @override
       */
The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
@public
@override
The component is initialized by UI5 automatically during the startup of the app and calls the init method once . @public @override
init() {
        UIComponent.prototype.init.apply(this, arguments)
        this.setModel(models.createDeviceModel(), 'device')
        this.setModel(models.createTodoModel(), 'todo')
        this.getRouter().initialize()
      }
init ( ) { UIComponent . prototype . init . apply ( this , arguments ) this . setModel ( models . createDeviceModel ( ) , 'device' ) this . setModel ( models . createTodoModel ( ) , 'todo' ) this . getRouter ( ) . initialize ( ) }
The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
The component is initialized by UI5 automatically during the startup of the app and calls the init method once .
// call the base component's init function // set the device model // set the todo model // create the views based on the url/hash