unfulvio / wp-api-menus

:abcd: Menu routes for WordPress JSON REST API.
https://wordpress.org/plugins/wp-api-menus
GNU General Public License v2.0
140 stars 59 forks source link

How to display a menu? #48

Open cladjidane opened 7 years ago

cladjidane commented 7 years ago

Hi, the plugin works fine but I do not see how to handle the rendering of the menu. A small example please?

isuke01 commented 6 years ago

Vue Example : Function: const vm = this; vm.$http.get( 'wp-api-menus/v2/menu-locations/'+vm.menuLocation ) .then( ( res ) => { vm.menus = res.data; } ) Template: `

` This is base example, you need to adjust it to your needs