Skip to content

Instantly share code, notes, and snippets.

@MartinhoMCM
Created April 6, 2022 13:07
Show Gist options
  • Save MartinhoMCM/a861ab992451bc920a5c39f987b6c09d to your computer and use it in GitHub Desktop.
Save MartinhoMCM/a861ab992451bc920a5c39f987b6c09d to your computer and use it in GitHub Desktop.
pai.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-pai',
templateUrl: './pai.component.html',
styleUrls: ['./pai.component.css']
})
export class PaiComponent implements OnInit {
constructor() { }
message:any='';
ngOnInit() {
}
event = {
id: 1,
name: 'Angular Connect',
date: '9/26/2036',
time: '10:00 am',
price: 599.99,
location: {
address: '1057 DT',
city: 'London',
country: 'England'
}
}
handleClickedEvent(event){
this.message =event;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment