Script Portlet For Single Page Applications

1 view
Skip to first unread message

Syed Imtiaz

unread,
May 24, 2018, 3:49:57 AM5/24/18
to Portal/WCMTechs
Dear All,

How are you all doing... I hope this email finds you in good health.

In Portal 9 I am trying to integrate Angular application by importing feature of script portlet. Import completed successfully and able to see file contents as it is uploaded.

Unfortunately, while rendering the page its throwing script errors in console and upon analyzing I found out below issues and so far identified, after resolving them I may get more.

there are few statement which getting rendered blank, such as:

1. In imported source code snippet is like: f.replace(/[$@]/g,"_") but in browser loaded file is like: f.replace(//g,"_") due to which rendering broke with error.
             Some how I managed this by changing f.replace(/[\$\@]/g,"_")

2. there is snippet: return[{type:void 0,decorators:[{type:At,args:[$u]}]}] but in browser being loaded as return[{type:void 0,decorators:[{type:At,args:}]}]
     no args: value in browser loaded file.

The thing is why is it absconding actual snippets in source while loading into browsers.

The sample application (https://angular.io/tutorial/toh-pt0) is working fine in tomcat but failing in portal. Your inputs are appreciated. Thank you.
Sample implemented till routing topic from above link. due to some reason unable to attach the sample zip here.
Reply all
Reply to author
Forward
0 new messages