Valor do modelo de passagem angular do componente

// Component //

export class MyComponent implements onInit {
  // define vars
  shownSetting: string;

  ngOnInit() {
    this.myMethod();
  }

  myMethod() {
    return xyz.length > 0 ? this.shownSetting = "Blue" : this.shownSetting = "Green";
  }
}


// Template //

<div>
  {{shownSetting}} 
</div>
Banana in Transit