Angular 5: Circular dependency detected between models
问题 I'm stuck for few days with this error, and I don't know how to solve it. I have 2 models in my app : User and Team . user.ts : import { Team } from './team'; export class User { id: string = null; name: string = null; email: string = null; settings: any = {}; team: Team = null; constructor(json?: Object){ var defaultSettings = {}; if(json){ this.id = json['id'] || null; this.name = json['name'] || null; this.email = json['email'] || null; this.settings = json['settings'] || {}; this.team =