ecamp / ecamp/hal-json-vuex

Add support for $href

Open
#57 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8
Forks
3
PR merge metrics
No merged PRs in 30d

Description

In #1 and #10 we added `$post` and similar accessors on `StoreValue` objects. We could just as easily add an `$href` accessor, which would make using `href` much more readable:

### Current
```Javascript
const authorUri = await this.api.href(book, 'author')
```

### Proposed
```Javascript
const authorUri = await book.$href('author')
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.