How to include angular2/4 component in JSP page?

后端 未结 4 1132
孤街浪徒
孤街浪徒 2021-02-10 15:12

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

4条回答
  •  感情败类
    2021-02-10 15:33

    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.

提交回复
热议问题