Added the code as it is to my project. I didn't have the typing.d.ts file pre-installed so created it manually and defined Config there but when ng serve the project and go to the login page enter credentials click on Login. I get the following error:
LoginComponent.html:6 ERROR ReferenceError: config is not defined
at AuthenticationService.push../src/app/auth/_services/authentication.service.ts.AuthenticationService.login (authentication.service.ts:23)
at LoginComponent.push../src/app/login/login.component.ts.LoginComponent.onSubmit (login.component.ts:51)
at Object.eval [as handleEvent] (LoginComponent.html:6)
at handleEvent (core.js:10251)
at callWithDebugContext (core.js:11344)
at Object.debugHandleEvent [as handleEvent] (core.js:11047)
at dispatchEvent (core.js:7710)
at core.js:9190
at SafeSubscriber.schedulerFn [as _next] (core.js:3563)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:195)
Added the code as it is to my project. I didn't have the typing.d.ts file pre-installed so created it manually and defined Config there but when ng serve the project and go to the login page enter credentials click on Login. I get the following error:
LoginComponent.html:6 ERROR ReferenceError: config is not defined at AuthenticationService.push../src/app/auth/_services/authentication.service.ts.AuthenticationService.login (authentication.service.ts:23) at LoginComponent.push../src/app/login/login.component.ts.LoginComponent.onSubmit (login.component.ts:51) at Object.eval [as handleEvent] (LoginComponent.html:6) at handleEvent (core.js:10251) at callWithDebugContext (core.js:11344) at Object.debugHandleEvent [as handleEvent] (core.js:11047) at dispatchEvent (core.js:7710) at core.js:9190 at SafeSubscriber.schedulerFn [as _next] (core.js:3563) at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:195)