留言板

SPA and Dashboard theme

abhishek kumar,修改在8 年前。

SPA and Dashboard theme

Regular Member 帖子: 138 加入日期: 15-8-17 最近的帖子
hello
I have created Single_page_application using angular js.for basic model itself it is running successfully...

i want to ask i had already created a dashboard theme in which navigation panel is there(freemaker and styled) , now how to give connection to dashboard theme to mine single page application portlet..plz help me to figure this out as already been delayed ...as i had put screenshot aslo.
thumbnail
David H Nebinger,修改在8 年前。

RE: SPA and Dashboard theme

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Wrap it up as a portlet and deploy onto the page.
abhishek kumar,修改在8 年前。

RE: SPA and Dashboard theme

Regular Member 帖子: 138 加入日期: 15-8-17 最近的帖子
David H Nebinger:
Wrap it up as a portlet and deploy onto the page.


thanku sir for your brief reply, actually i have to go to embeded or wrap.?? plz explain in details

although if i wraped or embed also it will show in server but how it will connect to navigation (dashboard_theme)

as i have to give connection of dashboard theme to single page application , the portlet has been already ready

the connection i have to give that is been delayed..??
thumbnail
David H Nebinger,修改在8 年前。

RE: SPA and Dashboard theme

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
You have two basic choices:

1. you wrap the SPA as a portlet. For angular, that means you're bootstrapping the app into place (not trying to declare it simply as an ng-app attribute, doing and actual bootstrap load into your portlet container). In this option, you are using Liferay navigation bar to nav between portal pages and your angular nav is limited inside your angular portlet, it will not own nor manage the address bar.

2. you do a SPA and manage your own navigation, address bar, etc. In this option, Liferay is providing nothing but the user management and a wide-ranging javascript API. In fact, Liferay won't even be part of your angular html fragments/display.

Note you cannot have both of these, you have to pick one or the other.
Viktor Dzundza,修改在7 年前。

RE: SPA and Dashboard theme

New Member 帖子: 16 加入日期: 16-9-16 最近的帖子
As I understood, I will have an access to LifeRay user management, files, permission only via REST calls ? Am I right ?
thumbnail
David H Nebinger,修改在7 年前。

RE: SPA and Dashboard theme

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
If you go the route of using a full blown Angular app, yes. Most folks fall back to using angular portlets and just live with the issues they encounter, but I have seen an application where it is completely angular and use the Liferay web service APIs, but that's a lot of code to deal with...