Update js.rst

AngularJS: var app...
missing closing "]" before ").config..."
This commit is contained in:
marmuDev
2014-10-30 21:52:20 +01:00
parent e6657dcd1f
commit 79de1f64ab

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;
}]);