mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Update js.rst
AngularJS: var app... missing closing "]" before ").config..."
This commit is contained in:
@@ -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;
|
||||
}]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user