I need to access a method from UserModel
within the constructor of my UserLogic
class. How can I achieve this?
import { UserModel, ItUser } from '../../models/user.model';
export class UserLogic {
public user: ItUser;
constructor() {
//UserModel is a singleton class
this.user = UserModel.model().user;
console.log(this.user);
}
}