-
-
Save BrightnBubbly/c786463ee02936f3368a80d269eb7868 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
export declare interface User { | |
token: string; | |
apiKey: string; | |
username: string; | |
} | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class StateService { | |
constructor() {} | |
private _user: User; | |
get user(): User { | |
return this._user; | |
} | |
set user(user: User) { | |
this._user = user; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment