public function render( $echo = false )
    {
        $this->enqueue_scripts();
        
        ob_start();
        include dirname(__FILE__).'/AbstractComponent.phtml';
        $html = ob_get_clean();

        if( !$echo )
        {
            return $html;
        }
        echo $html;
    }
public function render( $echo = false )
    {
        $this->enqueue_scripts();
        
        ob_start();
        include dirname(__FILE__).'/AbstractComponent.phtml';
        $html = ob_get_clean();

        if( !$echo )
        {
            return $html;
        }
        echo $html;
    }
public function render ( $ echo = false ) { $ this -> enqueue_scripts ( ) ; ob_start ( ) ; include dirname ( __FILE__ ) . '/AbstractComponent.phtml' ; $ html = ob_get_clean ( ) ; if ( ! $ echo ) { return $ html ; } echo $ html ; }
Enqueue component's script and render it.

{@inheritdoc}
Enqueue component s script and render it .