Yii2 - render view without layout

You have to use "renderPartial" to exclude layout from view. But "renderPartial" prevents loading asset files like css and js.
Take a look at the example below.

    
        public function actionIndex()
        {
            $this->renderPartial('view', ['model' => $yourModel]);
        }