I'm using eclipse to build angular application (my first application), at the beginning I created my project via New->Angular Project (I have plugins installed) but later on I was asked to use a Dynamic Web Project (with WebContent Folder) and I was wondering what is the best way of doing it!
What I tried is creating a Dynamic Web Project, then from inside the folder of that project to create a new angular2 site (in parallel to Java resources using angular-cli: > ng new Angular Resources).
But I have issues with that and I'm not sure that am doing it the right way:
The reason why I need this is because am going to use shiro for users authentication and I need to develop a RestApi as well that will be part of the same war. Example for such a project that was done with angularJs (angular1):
Even if I locate the angular folder under WebConent (like what was done here), I'll still have errors (JSon, DTD, HTMl) in node_modules.
I found something similar to what I'm looking for, and I'm trying to do it works for me as well: https://github.com/Angular2Guy/Angular2AndJavaEE