wp-api-angular
wp-api-angular copied to clipboard
Angular (>=2) services for WordPress WP-API(v2) or WP >= 4.7 (natively supports WP-API)
Why do I get this error? TypeError: Cannot read property 'length' of undefined at WpProvider.webpackJsonp.211.WpProvider.getUserImage (http://localhost:8100/build/main.js:293:51) at BlogPage.webpackJsonp.150.BlogPage.getUserImage (http://localhost:8100/build/main.js:36:32) at Object.eval [as updateRenderer] (ng:///AppModule/BlogPage.ngfactory.js:47:25) at Object.debugUpdateRenderer [as updateRenderer] (http://localhost:8100/build/vendor.js:15041:21) at...
please. I have an 401 (Unauthorized) error when I create a post error: https://localhost/hl-bir/wp-json/wp/v2/posts 401 (Unauthorized) and this is the function: createPost(body: any) { let headers = new Headers(); headers.append('Content-Type',...