You can use @section declarations to render component's head (css and js files) in a parent layout file rather than the view file.