File

projects/app-base-library/src/lib/shared/user.ts

Index

Properties

Constructor

constructor(profile: any)
Parameters :
Name Type Optional
profile any no

Properties

_profile
_profile: any
Type : any
authData
authData: any
Type : any
authenticated
authenticated: boolean
Type : boolean
data
data: any
Type : any
email
email: string
Type : string
id
id: string
Type : string
name
name: string
Type : string
password
password: string
Type : string
export class User {

    _profile: any;
    id: string;
    email: string;
    name: string;
    password: string;
    authenticated: boolean;
    authData: any;
    data: any;

    constructor(profile: any) {
        this._profile = profile;
        Object.keys(profile).forEach((k) => {
            this[k] = profile[k];
        });
    }
}

results matching ""

    No results matching ""