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 am able to include my angular component into jsp by bootstrapping it into my application and it runs fine. Below is one way of doing so. Another you can also include the whole component code and bootstrap angular module.
app.js
(function() { var MyApp = ng.core.Component({ selector : 'my-app', template : '
Hello Angular 2!
' }).Class({ constructor : function() { } }); document.addEventListener('DOMContentLoaded', function() { ng.platformBrowserDynamic.bootstrap(MyApp); }); })();
For more information you can read bootstrapping angular application.