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
One final bit of code you'll need to make this app work is the ability to set attributes. To do that, you'll use `:attribute_name="binding_value"`. For exampe:
97
+
One final bit of code you'll need to make this app work is the ability to set attributes. To do that, you'll use `:attribute_name="binding_value"`. For example:
98
98
99
-
```
99
+
```html
100
100
<optionv-for="g in genres":value="g">{{g}}</option>
101
101
```
102
102
103
-
With all of this background info. Go ahead and write the app to work up to the point we had it with fake data. For that you'll need to create and include a fake_data.js file. Just save the data from the service.
103
+
With all of this background info. Go ahead and write the app to work up to the point we had it with fake data. For that you'll need to create and include a `fake_data.js` file. Just save the data from the service.
104
104
105
105
106
106
## Day 3: Watch videos second half
@@ -113,7 +113,9 @@ Down to the last day! Now you can toss that fake data and start using the API.
113
113
114
114
We will be using the [axios library](https://github.com/axios/axios). You can call any GET HTTP endpoint via something like this:
115
115
116
-
```
116
+
```javascript
117
+
// In js/site.js within a method of your app.
118
+
117
119
let that =this
118
120
axios.get(url)
119
121
.then(function (response) { // handle success
@@ -124,11 +126,11 @@ axios.get(url)
124
126
})
125
127
```
126
128
127
-
Remeber our service is located at [movie_service.talkpython.fm](http://movie_service.talkpython.fm/). Use this type of code above to implement three methods and bind those methods to the revelant events:
129
+
Remember our service is located at [movie_service.talkpython.fm](http://movie_service.talkpython.fm/). Use this type of code above to implement three methods and bind those methods to the relevant events:
0 commit comments