I need to add both my service as well as an authentication service to my app.component.ts, but I can't seem to add both in my constructor parameters. How can I do that and still have both available to the whole application? Here's what I have:
constructor(private _dataService: DataService, authToken: Angular2TokenService) {
this.authToken.init(environment.token_auth_config)
}
The error is: Property 'authToken' does not exist on type 'AppComponent'.
All necessary items have already been imported.
How can I write both in? Most answers I'm finding are for older versions of Angular. Thanks.