Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 2.02 KB

CHANGELOG.md

File metadata and controls

86 lines (58 loc) · 2.02 KB

<a name="3.0.0-beta8>

3.0.0-beta8 (2017-05-24)

Angular 4.x support for AOT

<a name="3.0.0-beta7>

3.0.0-beta7 (2017-02-04)

  • BREAKING CHANGE: WpApiModule.initializeApp is now WpApiModule.forRoot

Follow the following docs to migrate to the new way to bootstrap your module:

An exported function instead WpApiLoaderFactory is mandatory to be used with AoT compilation or Ionic 2.

import { Http } from '@angular/http';
import { 
  WpApiModule
  WpApiLoader,
  WpApiStaticLoader
} from 'wp-api-angular'

export function WpApiLoaderFactory(http: Http) {
  return new WpApiStaticLoader(http, 'http://YOUR_DOMAIN/wp-json/', /* namespace is optional, default: '/wp/v2' */);
}

@NgModule({
  imports: [
    BrowserModule,
    WpApiModule.forRoot({
      provide: WpApiLoader,
      useFactory: (WpApiLoaderFactory),
      deps: [Http]
    })
  ],
  bootstrap: [App]
})
export class AppModule { }

<a name="3.0.0-beta6>

3.0.0-beta6 (2017-02-01)

export missing tokens to fix aot in ionic cli

3.0.0-beta5 (2017-02-01)

Fix config and http injection #20

3.0.0-beta4 (2017-01-27)

Add AOT support for GOOD this time! #19

3.0.0-beta3 (2017-01-22)

Add AOT support #19

3.0.0-beta2 (2016-11-14)

Remove d.ts extensions #15

3.0.0-alpha8 (2016-10-30)

Upgrade to Angular 2.0.0 / NgModules

3.0.0-alpha7 (2016-07-30)

Making sure it is usable via TypeScript as well (export d.ts files).

3.0.0-alpha2 (2016-07-24)

Adding peer dependencies

3.0.0-alpha1 (2016-07-23)

First version for ng2.