You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,40 @@
1
-
<a name="3.0.0-beta56></a>
1
+
<a name="3.0.0-beta7></a>
2
+
### 3.0.0-beta7 (2017-02-04)
3
+
4
+
* BREAKING CHANGE: `WpApiModule.initializeApp` is now `WpApiModule.forRoot`
5
+
6
+
Follow the following docs to migrate to the new way to bootstrap your module:
7
+
8
+
An exported function instead `WpApiLoaderFactory` is mandatory to be used with [AoT compilation](https://angular.io/docs/ts/latest/cookbook/aot-compiler.html) or [Ionic 2](http://ionic.io/).
9
+
10
+
11
+
```js
12
+
import { Http } from'@angular/http';
13
+
import {
14
+
WpApiModule
15
+
WpApiLoader,
16
+
WpApiStaticLoader
17
+
} from'wp-api-angular'
18
+
19
+
exportfunctionWpApiLoaderFactory(http:Http) {
20
+
returnnewWpApiStaticLoader(http, 'http://YOUR_DOMAIN/wp-json/', /* namespace is optional, default: '/wp/v2' */);
Copy file name to clipboardExpand all lines: README.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,22 +30,30 @@ UMD files are available `wp-api-angular.umd.js` and `wp-api-angular.umd.min.js`,
30
30
31
31
## Bootstrap
32
32
33
+
An exported function instead `WpApiLoaderFactory` is mandatory to be used with [AoT compilation](https://angular.io/docs/ts/latest/cookbook/aot-compiler.html) or [Ionic 2](http://ionic.io/).
0 commit comments