rookie, want to know if anyone has integrated webform + vue single page application?
because there is currently a task: consider refactoring an old report project.
how the project works:
1. The front-end configuration of some database query statement parameters and other configuration items persisted to the database.
2. When calling, read these configuration items of the report in the database through id, and then query the database, return the results to the front end, and then splice the strings through juqery to spell out the whole page, and finally render. Somewhat similar to:
case "paging control": render paging control
case "chart": render echarts.
case "grid": render table.
Last html (data);
learned that vue seems to have this feature of component reuse and wanted to see if it could be integrated.
currently used technologies:
jquery (operation splicing dom and data),
ashx (interface control layer),
aspx (page container)
Vue.js has been used directly through < script > on some simple pages in other projects. Know some simple vue syntax.
want to know:
1. If you develop with this component, can you continue to work better on VS2017 (syntax hints, etc.)? Or should I cut IDE? Switch to vscode?
2. Whether you also need to know about vue-cli,vue-x,vue-router and other related ecology (I belong to the server, but the pages related to the business data used internally, such as reporting, do not belong to the front-end processing, and the front-end has other business to deal with. )?
3. To sum up, I hope to update the current technology stack, but the cost is not clear, so I have checked it a little bit. It is recommended to write typescript and vue in vscode (ts seems to have better support in vs2017, so you want to do this in ts+vue). Then I tried to compile ts in vs2017, but it didn"t work. Prompt can not find that tsc file, do not know where is not configured right, according to the official website tutorials on the new two json.
package.json:
{
"version": "1.0.0",
"name": "asp.net",
"private": true,
"devDependencies": {
"gulp": "3.9.0",
"del": "2.2.0"
}
}
tsconfig.json:
{
"compilerOptions": {
"noImplicitAny": true,
"noEmitOnError": true,
"sourceMap": true,
"target": "es5"
},
"files": [
"./app.ts"
],
"compileOnSave": true
}