Skip to content
Permalink
Browse files

docs(guide/concepts): use protocol relative URL

When accessing the docs from https, the "Accessing the backend example fails
because it contains a hard coded protocol. By making the URL protocol relative,
the example should work over http and https.
  • Loading branch information
nickvdyck authored and btford committed Jul 15, 2014
1 parent f6f469e commit b5f0721e3dc76eb3fb507d93389dc75531821300
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/content/guide/concepts.ngdoc
@@ -323,7 +323,7 @@ The following example shows how this is done with Angular:
angular.module('finance3', [])
.factory('currencyConverter', ['$http', function($http) {
var YAHOO_FINANCE_URL_PATTERN =
'http://query.yahooapis.com/v1/public/yql?q=select * from '+
'//query.yahooapis.com/v1/public/yql?q=select * from '+
'yahoo.finance.xchange where pair in ("PAIRS")&format=json&'+
'env=store://datatables.org/alltableswithkeys&callback=JSON_CALLBACK';
var currencies = ['USD', 'EUR', 'CNY'];

0 comments on commit b5f0721

Please sign in to comment.
You can’t perform that action at this time.