Last post May 21, 2021 06:56 PM by bruce (sqlwork.com)
May 21, 2021 12:44 PM|abhisinghal21|LINK
Looking to use jquery + vue.js in a ASP .NET core MPA.
Also looking to migrate towards TypeScript for both jQuery and vue.js.
Need a sample project which can get us started for above.
May 21, 2021 01:02 PM|mgebhard|LINK
Vue is an more robust and modern alternative to jQuery. It does not make a lot of sense to implement jQuery within a Vue application. What jQuery feature do you need that Vue does not support?
May 21, 2021 02:43 PM|abhisinghal21|LINK
Ok. Suppose we leave aside jquery for now.
Is there a sample project which shows Asp .net Core MPA App with vue.js in TypeScript ?
May 21, 2021 03:01 PM|bruce (sqlwork.com)|LINK
To use typescript and MPA will make the project more difficult, as typescript will require transpiling. also using typescript you probably want module support.
You will not be able to use the vue cli, so you will need to create you own webpack config, that has an output for each page.
if you want start with the cli, you could create a folder for each page, and separate node project for each page in the folder. Each page project will generate
its own index page. You could debug each page standalone. Then you will need a deployment step in the msbuild and and custom static file handler to map the request to the pagefolder/build/ structure.
as vue.js is a client technology, find any MPA examples. You asp.net core will be a simple html source and webapi.
May 21, 2021 03:34 PM|abhisinghal21|LINK
So does this mean TypeScript is not available to Asp .Net Core MPA projects ?
Just want a JS library which can work with Asp .Net Core MPA, can be coded in TypeScript, and can do data binding.
May 21, 2021 06:56 PM|bruce (sqlwork.com)|LINK
for all these tools, and msbuild can execute a client build tool.
here is a sample using a folder structure:
put source as root folder (ClientApp is the asp.net core convention) in the asp.net core project, and use the static or spa file handler to expose the build folder.