Skip to content

Commit

Permalink
Merge pull request DevMountain#12 from DevMountain/refsFix
Browse files Browse the repository at this point in the history
Refs fix
  • Loading branch information
SheaClose authored Jun 7, 2018
2 parents eb5a108 + 8fb6de5 commit c7997b9
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 130 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.vscode
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ In this step, we'll make use of `axios` to get the `Add vehicle` button to work.
```js
addCar() {
let newCar = {
make: this.refs.make.value,
model: this.refs.model.value,
color: this.refs.color.value,
year: this.refs.year.value,
price: this.refs.price.value
make: this.make.value,
model: this.model.value,
color: this.color.value,
year: this.year.value,
price: this.price.value
};

axios.post('https://joes-autos.herokuapp.com/api/vehicles', newCar).then( results => {
Expand Down
Loading

0 comments on commit c7997b9

Please sign in to comment.