Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include angular2/4 component in JSP page?

Tags:

angular

jsp

I want to add angular component into JSP page, what are the possible ways ?

To Describe more :

I have one application dynamic web application in JSP and another I created is an angular component which does some authentication. Is there way to use this component in JSP web application, apart from object,embedd or iframe ?

like image 781
sukhi Avatar asked Oct 30 '22 04:10

sukhi


1 Answers

Another way I was able to do it, by building the angular component with command:

ng build 

This will generate JavaScript files will be created in dist folder of your angular project.

Then just include the files from the dist folder into your JSP application and use angular component directly.

like image 194
sukhi Avatar answered Dec 13 '22 23:12

sukhi