@@ -148,14 +148,14 @@ import { Component } from '@angular/core';
148148})
149149export class AppComponent {
150150
151- constructor (private oauthService : OAuthService ) {
151+ constructor (private oAuthService : OAuthService ) {
152152 this .configureWithNewConfigApi ();
153153 }
154154
155155 private configureWithNewConfigApi() {
156- this .oauthService .configure (authConfig );
157- this .oauthService .tokenValidationHandler = new JwksValidationHandler ();
158- this .oauthService .loadDiscoveryDocumentAndTryLogin ();
156+ this .oAuthService .configure (authConfig );
157+ this .oAuthService .tokenValidationHandler = new JwksValidationHandler ();
158+ this .oAuthService .loadDiscoveryDocumentAndTryLogin ();
159159 }
160160}
161161```
@@ -173,15 +173,15 @@ import { OAuthService } from 'angular-oauth2-oidc';
173173})
174174export class HomeComponent {
175175
176- constructor (private oauthService : OAuthService ) {
176+ constructor (private oAuthService : OAuthService ) {
177177 }
178178
179179 public login() {
180- this .oauthService .initImplicitFlow ();
180+ this .oAuthService .initImplicitFlow ();
181181 }
182182
183183 public logoff() {
184- this .oauthService .logOut ();
184+ this .oAuthService .logOut ();
185185 }
186186
187187 public get name() {
@@ -221,15 +221,15 @@ Pass this Header to the used method of the ``Http``-Service within an Instance o
221221
222222``` TypeScript
223223var headers = new Headers ({
224- " Authorization" : " Bearer " + this .oauthService .getAccessToken ()
224+ " Authorization" : " Bearer " + this .oAuthService .getAccessToken ()
225225});
226226```
227227
228228If you are using the new HttpClient, use the class HttpHeaders instead:
229-
229+
230230``` TypeScript
231231var headers = new HttpHeaders ({
232- " Authorization" : " Bearer " + this .oauthService .getAccessToken ()
232+ " Authorization" : " Bearer " + this .oAuthService .getAccessToken ()
233233});
234234```
235235
0 commit comments