]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/main.ts
Client: centralize http res extraction in a service
[github/Chocobozzz/PeerTube.git] / client / src / main.ts
index a78d275ad4029191b3d1db1c460f4f3aba4b4ea5..7caabe9141f38005127418feeb8505b6e3ca9b24 100644 (file)
@@ -1,4 +1,5 @@
 import { enableProdMode, provide } from '@angular/core';
+import { disableDeprecatedForms, provideForms } from '@angular/forms';
 import {
   HTTP_PROVIDERS,
   RequestOptions,
@@ -7,9 +8,9 @@ import {
 import { bootstrap }    from '@angular/platform-browser-dynamic';
 import { provideRouter } from '@angular/router';
 
-import { AppComponent } from './app/app.component';
 import { routes } from './app/app.routes';
-import { AuthHttp, AuthService } from './app/shared';
+import { AuthHttp, AuthService, RestExtractor } from './app/shared';
+import { AppComponent } from './app/app.component';
 
 if (process.env.ENV === 'production') {
   enableProdMode();
@@ -23,6 +24,12 @@ bootstrap(AppComponent, [
     },
     deps: [ XHRBackend, RequestOptions, AuthService ]
   }),
+
   AuthService,
-  provideRouter(routes)
+  RestExtractor,
+
+  provideRouter(routes),
+
+  disableDeprecatedForms(),
+  provideForms()
 ]);