Skip to content

Instantly share code, notes, and snippets.

@Kamilnaja
Created March 18, 2023 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kamilnaja/81cdf22250debb8df601f402ae12e094 to your computer and use it in GitHub Desktop.
Save Kamilnaja/81cdf22250debb8df601f402ae12e094 to your computer and use it in GitHub Desktop.
export interface AuthInfo {
isLoggedIn: boolean;
}
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { AuthInfo } from './auth-info.model';
@Injectable({
providedIn: 'root',
})
export class AuthService {
authInfo$: Observable<AuthInfo> = of({
isLoggedIn: false,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment