Linux 软件免费装
Banner图

Plugin Name

开发者 guavaworks
更新时间 2015年8月27日 07:41
捐献地址: 去捐款
PHP版本: 3.9 及以上
WordPress版本: 4.3
版权: GPLv2 or later
版权网址: 版权信息

标签

javascript angular angularjs single page application client side mvc angular js client side framework

下载

详情介绍:

AngularJS for WordPress was created to help anyone leverage the power of AngularJS and easily add it into their own theme. AngularJS is a client-side template framework that lets you extend HTML vocabulary for your applications. It has a markup more similar to what HTML used to be. HTML its not a dynamic language by itself, with AngularJS it is. AngularJS for WordPress includes several directives (html elements) that will help you easily add in a block for a single post/page or a list. More directives will be added in. WordPress shortcodes for directives are also included to avoid any confusion with code For even easier use for specific pages a new post meta box has been added. If selected the AngularJS directive will take over loading the content of the page client-side. This feature uses the post-content.html template. View documentation for how to utilize the directives and shortcodes

安装:

  1. Download zipped archive of plugin
  2. Log into your WordPress dashboard and add the new plugin via upload
  3. Activate the plugin
  4. Make sure you have the JSON REST API v2 plugin also activated
  5. View documentation for how to utilize the directives

屏幕截图:

  • In verison **0.2** a meta box on post and pages edit screen was added, choose yes to have the contenet of the page loaded with AngularJS automatically. A new custom template was also added (post-content.html)

常见问题:

Why use AngularJS?

AngularJS renders your posts client-side. WordPress is built on PHP, so every page a user visits is converted to HTML on the server, then served to the client. With ANgularJS you are only getting a JSON Object (text) from the server then renderring that to HTML using the client's machine. This will speed up your pages as well as allow for more concurrent visitors to your site as the strain on the server is reduced.

更新日志:

0.1 0.2 1.0 1.1 1.2 1.2.1 1.2.2 2.0.1 2.1 3.0