TrilonIO / aspnetcore-Vue-starter

*NEW* Asp.net Core & Vue.js (ES6) SPA Starter kit - Vuex, webpack, Web API, Docker, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.22k stars 266 forks source link

Adding components to _Layout.cshtml #69

Closed kvigor closed 6 years ago

kvigor commented 6 years ago

Is it possible to render a component outside the main app div? Trying it doesn't seem to work and I would like to add a component to my _Layout.cshtml

MarkPieszak commented 6 years ago

I think you'd have to just move your main app component to a more global location, that way you can inject things wherever you'd like.

You could just have the main app component be immediately inside of the entire <body> (in _layout). Then you could do whatever you'd like.

Hope that helps!

kvigor commented 6 years ago

Oh sweet! I'll give that a try and post my findings. Thanks.