Comments (5)
Hey,
I am not quite sure what you mean with "differences" because there are a lot of differences in many ways. There are different files used, a different architecture etc.
But let me explain the most important parts a bit:
First of all the Visual Studio Template has Server Side Rendering (SSR) activated which our template has not. To see how this is working you can just create a new Project in Visual Studio and see what is done there. It is a great example imho.
However: The file structure of the client app in the VS Template does not follow the best practises imho. It has no lettable operators (which can be easily introduced but like I said, I dont know in which kind of differences you are interested). In addition to that it is using the ViewBag which is a bad practice as ViewModels are a lot cleaner.
The biggest thing however is that client and server are not seperated. With that I mean that in the VS Template if a request is coming in the server renders the first site and is returning a view.
If you are doing web development you have frontend and backend development. Today there is REST as a standard to build your APIs which the client can call with HTTP-Calls. Client and server should be completely seperated. Client side has many topics, tools, a complete own ecosystem, even complete jobs exist only on frontend development like UX, Design and javascript developers. The backend, if kept seperated, can then be easily switched in technology or hardware. It can scale differently. The server does not care about the frontend (which can be an app, an WPF application etc.) and the frontend does not care about the backend (if its using ASP.NET Core, Java etc.) .
I personally seperate my application in different folders ("client"/"server") to switch easily and I am also using different tools for developing it. This template here is for developers who are into Visual Studio and do not want to use anything else but keep the client and server code seperated or have a situation where the client-side code can be extracted easily.
I touched some small and some big points here, as, again, I dont know exactly on which differences you are pointing at.
To be clear: We do not want to compete with the VS Template as we think its great work and you should decide what is best for you and your situation.
However I hope I did help you a bit :)
Fabian
PS: I don't know why our template is slower, have to investigate :)
from angularwebpackvisualstudio.
Closing this issue as I think the question got answered.
from angularwebpackvisualstudio.
@FabianGosebrink
Sorry for late reply. I was extremely busy.
Anyways, I was asking you about webpack.
Dotnet Angular template with Webpack is very faster than your custom project with webpack. Correct me if i am wrong. ;)
from angularwebpackvisualstudio.
Can you be more precise? Faster in reload? Faster in building? Like I said, I have to investigate :)
from angularwebpackvisualstudio.
Hello @FabianGosebrink
I'm trying your template right now.
I came to it after several weeks of trying the said dotnet angular template.
I have to say that I ran into multiple issues there. Generally, I solved most of them but got some drawbacks. But finally what brings me here is that it seems I'm consistently getting in troubles once trying to use third-party code like a theme I've purchased recently from ThemeForest.
I haven't understood all asp prerendering concepts quite well, but I feel that they mix together stuff that should be done completely separate. Front-end devs are not aware of asp prerendering and setting up it in webpack.config.js leads to conflicting webpack configuration in other's code.
So I'm quite happy to find your project, and this thread specifically, because you've just confirmed my thoughts. Thank you and other authors!
from angularwebpackvisualstudio.
Related Issues (20)
- Prod deployment issue HOT 4
- 502.5 when deploying to Windows Server 2016 HOT 1
- Looking for the HMR specific code in the zip HOT 2
- AOT setup questions HOT 2
- Angular-cli support HOT 2
- Update to Webpack 4 HOT 1
- Install webpack-cli error HOT 1
- AOT Build Fail HOT 1
- Annoying build warnings
- adding styleUrls gives error HOT 1
- Can not start project HOT 1
- Controller not being registered when running with webpack-dev-server HOT 4
- Could not find a declaration file for module AppModuleNgFactory HOT 6
- error in creating a veu.js with bootstrap using npm HOT 1
- Use optimization.splitChunks instead of separate entry points (Webpack 4)
- When running with watch, assets fail to regenerate on save HOT 1
- Remove raw-loader as latest version no longer works or find a solution HOT 1
- Internet Explorer Polyfills missing HOT 1
- Updating webpack v3.8.1 to v4.41.2 in existing application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularwebpackvisualstudio.