Valor de plantilla de pase angular del 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