X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fmain.ts;h=7caabe9141f38005127418feeb8505b6e3ca9b24;hb=de59c48f5f317018e3f746bbe4a7b7efe00109f2;hp=a78d275ad4029191b3d1db1c460f4f3aba4b4ea5;hpb=bd5c83a8cb46eb6da2b25df3b1f6a2a5795d1869;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/main.ts b/client/src/main.ts index a78d275ad..7caabe914 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -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() ]);