import {Component} from '@angular/core';
import {MessageComponent} from './message/message.component';

@Component({
  selector: 'app-root',
  imports: [MessageComponent],
  templateUrl: './app.component.html',
  styleUrl: './app.component.css'
})
export class AppComponent {
  title = 'Angular MVVM Sample App';
  showMessage = false

  constructor() {
  }

  toggleMessage() {
    this.showMessage = !this.showMessage;
  }
}
