@@ -186,7 +186,7 @@ Right now, the `InvoiceController` contains all logic of our example. When the a
186
186
is a good practice to move view-independent logic from the controller into a
187
187
<a name="service">{@link services service}</a>, so it can be reused by other parts
188
188
of the application as well. Later on, we could also change that service to load the exchange rates
189
- from the web, e.g. by calling the [Fixer .io](http ://fixer .io) exchange rate API, without changing the controller.
189
+ from the web, e.g. by calling the [exchangeratesapi .io](https ://exchangeratesapi .io) exchange rate API, without changing the controller.
190
190
191
191
Let's refactor our example and move the currency conversion into a service in another file:
192
192
@@ -300,7 +300,7 @@ to something shorter like `a`.
300
300
301
301
## Accessing the backend
302
302
303
- Let's finish our example by fetching the exchange rates from the [Fixer .io](http ://fixer .io) exchange rate API.
303
+ Let's finish our example by fetching the exchange rates from the [exchangeratesapi .io](https ://exchangeratesapi .io) exchange rate API.
304
304
The following example shows how this is done with AngularJS:
305
305
306
306
<example name="guide-concepts-3" ng-app-included="true">
@@ -331,7 +331,7 @@ The following example shows how this is done with AngularJS:
331
331
};
332
332
333
333
var refresh = function() {
334
- var url = 'https://api.fixer .io/latest?base=USD&symbols=' + currencies.join(",");
334
+ var url = 'https://api.exchangeratesapi .io/latest?base=USD&symbols=' + currencies.join(",");
335
335
return $http.get(url).then(function(response) {
336
336
usdToForeignRates = response.data.rates;
337
337
usdToForeignRates['USD'] = 1;
0 commit comments