themes - Angular integration with homepage

I have a requirement from client that they want to serve wordpress' front page as home page to angular project. It

I have a requirement from client that they want to serve wordpress' front page as home page to angular project. It means if user clicks any link on WP's home page, then it will redirect to angular project's internal urls.

Once landed on angular's page they should be able to go back to any pages from where it was redirected (may be angular or WP page)

Things I followed so far:

I managed to install local angular setup inside worpdress directory.

currently directory pattern is looking like

www.example/wordpress/angular

on clicking WP's menu link it will redirect to

www.example/wordpress/angular/#/some-url

(I am struggling to remove 'angular' directory name for Url though)

on back, it is going to wordpress homepage.

But there are lot of routing issues due to parent and childdirectory's different routing system. I am trying to maintain as all redirection should be like SPA.

Is there any better way to make such integration?

I am using WP version 5.2.3 and Angular 6.x

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745134121a4613118.html

相关推荐

  • themes - Angular integration with homepage

    I have a requirement from client that they want to serve wordpress' front page as home page to angular project. It

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信