Skip to content

Commit

Permalink
Merge branch 'master' into release/version-8
Browse files Browse the repository at this point in the history
  • Loading branch information
safo6m committed Jul 18, 2019
2 parents 1243676 + f549c1a commit 3025958
Show file tree
Hide file tree
Showing 16 changed files with 1,259 additions and 633 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# [8.1.0-beta]

* Merge fixes from version 7 (7.1.0)

# [8.0.0-beta]

* Allow upgrade to Angular 8

# [7.1.0]

* Allow mixed model types in a single HasMany relationships ([#216](https://github.com/ghidoz/angular2-jsonapi/pull/216))

### Bug fixes

* Fix using relationship config key ([#210](https://github.com/ghidoz/angular2-jsonapi/pull/210))
* Fix connecting related model resources parsed from response ([#213](https://github.com/ghidoz/angular2-jsonapi/pull/213))

# [7.0.0]

### BREAKING CHANGES
Expand Down
6 changes: 3 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -470,21 +470,21 @@ Content-Type: application/vnd.api+json
You can also add your custom headers to be appended to each http call:

```typescript
this.datastore.headers = new Headers({'Authorization': 'Bearer ' + accessToken});
this.datastore.headers = new HttpHeaders({'Authorization': 'Bearer ' + accessToken});
```

Or you can pass the headers as last argument of any datastore call method:

```typescript
this.datastore.findAll(Post, {
include: 'comments'
}, new Headers({'Authorization': 'Bearer ' + accessToken}));
}, new HttpHeaders({'Authorization': 'Bearer ' + accessToken}));
```

and in the `save()` method:

```typescript
post.save({}, new Headers({'Authorization': 'Bearer ' + accessToken})).subscribe();
post.save({}, new HttpHeaders({'Authorization': 'Bearer ' + accessToken})).subscribe();
```

### Custom request options
Expand Down
Loading

0 comments on commit 3025958

Please sign in to comment.