如何將AngularJS與WordPress連接?

[英]How to connect AngularJS with WordPress?


I have a mobile app that I am constructing with Ionic Framework, I've been researching trough the web trying to get any tutorial which give me the answer to my question: how can I connect my app with WordPress?

我有一個移動應用程序,我正在使用Ionic Framework構建,我一直在研究通過網絡試圖獲得任何教程,給我我的問題的答案:我如何連接我的應用程序與WordPress?

all I see is questions like this

我只看到這樣的問題

I don't want/need to touch anything in the WordPress part, unless I need any plugin or something, all I need is to display the posts of WordPress account in my mobile app main view, so, is there any tutorial you can show me which goes straight to the point? do you have any example?

我不想/需要觸摸WordPress部分中的任何內容,除非我需要任何插件或其他東西,我只需要在我的移動應用主視圖中顯示WordPress帳戶的帖子,那么,是否有任何教程可以顯示直截了當的我?你有什么例子嗎?

My app is running with Angular, so I need to do everything with it.

我的應用程序正在運行Angular,所以我需要用它來做所有事情。

I saw this tutorial but he is doing it with something named Freshly-Pressed, how can I do it but with my own WP ?

我看到了這個教程,但他正在用名為Freshly-Pressed的東西做這件事,我怎么能用自己的WP做呢?

1 个解决方案

#1


I didn't find any tutorial but you can acheive this with WP-REST API. Which gives you to fetch posts or create posts and more.

我沒有找到任何教程,但你可以用WP-REST API實現這一點。這使您可以獲取帖子或創建帖子等。

OR If you want to acheive it through a plugin then follow this post http://www.sitepoint.com/wordpress-json-rest-api/

或者如果你想通過一個插件來實現它,那么請關注這篇文章http://www.sitepoint.com/wordpress-json-rest-api/


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2015/05/06/73027e90f2efe2618f6f3314bfd71ac2.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com