namespace Views { export class HomeSidebar extends Views . View < HTMLDivElement > { public automatchForm : Views . AutomatchForm ; constructor ( ) { super ( Views . Templates . createDiv ( 'home-sidebar' ) ) ; this . automatchForm = new Views . AutomatchForm ( ) ; this . automatchForm . attach ( this . root ) ; } public activate ( ) { this . automatchForm . activate ( ) ; super . activate ( ) ; } public deactivate ( ) { super . deactivate ( ) ; this . automatchForm . deactivate ( ) ; } } }