Benson
Provides a simple Angular integration with the WP REST API.
★ 3stars
5forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/vcuarts/benson/archive/refs/heads/master.zipDeclares an update source (VCUarts/benson), so updates arrive through the plugin's own updater.
From the readme
Benson
Simple Angular integration with the WP REST API. Takes an endpoint and binds it to scope so you can use mustache in your templates and the WordPress HTML editor.
Description
Benson accepts a local endpoint from your wordpress install, binds the result to scope and makes that available to your templates and the WordPress HTML editor.
Supports ACF.
Installation
1. Upload benson to the /wp-content/plugins/ directory
2. Activate the plugin through the 'Plugins' menu in WordPress
Usage
1. Add an endpoint to a post or page
2. Check any modules you want to include
3. Write your controllers in a wordpress template or within the HTML editor.
Frequently Asked Questions
Where do I get my endpoint?
Use this for now. Eventually it'll be part of core.
How do I template?
Use ng-app="benson" and ng-controller="MainController" like this:
Recipes
Show posts with input for filtering
Show posts with input for filtering and pagination
Check out the Angular docs for more info.
How do I sanitize html?
use ng-bind-html like this
Why Benson?
Because he is a gumball machine, also known as The Park's manager. [[source]](http://regularshow.wikia.com/wiki/Benson)
Change log
v1.1.1