mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Update js.rst
AngularJS: var app... missing closing "]" before ").config..."
This commit is contained in:
parent
e6657dcd1f
commit
79de1f64ab
@ -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;
|
||||
}]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user