Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.07 KB

README.md

File metadata and controls

47 lines (32 loc) · 2.07 KB

AngularJS for WordPress

What is it?

AngularJS for WordPress is a plugin to help anyone easily leverage AngularJS in their theme

Features

AngularJS for WordPress is being built to keep things simple for you. Using AngularJS directives so you don't have to do any JavaScript unless you want to.

Templating is a huge part of WordPress, and to keep the ease of use we have built in a template override system, just copy the 'angularjs-templates' directory from the plugin to your theme directory and you can customize how the directives render!

Directives

Directives are HTML elements that act as wrappers for AngularJS code. Functionality including the templates are injected where these elements are found.

Example: <ng-posts></ng-posts>

Shortcodes

Shortcodes are an easy way to add any custom functionality to your post or page without extra coding. Included in the plugin are shortcodes to input the AngularJS directives, so you don’t have to fuss with the code.

Available Shortcodes

  • [ng-post id="#"]
  • [ng-posts]

Read full shortcode documentation for full attribute list

Install Instructions

  • Download / Pull All Files
  • Install Plugin from zip file
  • Download & Install the WP API Plugin by Ryan McCue
  • Activate AngularJS for WordPress
  • Read docs for how to use directives and templates

You can also download from WordPress