NetanelBasal
10/24/2017 - 10:52 AM

sweetalert1.ts

@Component({
  template: `
    <button (click)="log()">{{text}}</button>
  `
})
export class CustomComponent {

  @Input() text = 'Click me';

  log() {
    console.log('From Custom Component!!');
  }

}