Getting started - MurhafSousli/ngx-wordpress GitHub Wiki

Installation

NPM

npm i -S @ngx-wordpress/core

YARN

YARN yarn add @ngx-wordpress/core

Usage

Import WordPressModule in the root module

import { WordPressModule } from '@ngx-wordpress/core';

@NgModule({
  // ..
  imports: [
    WordPressModule.forRoot({
      baseUrl: 'https://my-wordpress-site.com'
    })
  ]
})
export class AppModule {}

Setting the baseUrl of your WordPress website is essential for the library to work!

Now the WP decorators are ready!