Merge pull request #634 from marmuDev/patch-1

Update js.rst
This commit is contained in:
Morris Jobke
2014-10-31 12:17:36 +01:00

View File

@@ -25,7 +25,7 @@ For AngularJS the following lines would need to be added:
.. code-block:: js
var app = angular.module('MyApp', [).config(['$httpProvider', function($httpProvider) {
var app = angular.module('MyApp', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.headers.common.requesttoken = oc_requesttoken;
}]);