NetanelBasal
1/15/2017 - 12:30 PM

timeout1.ts

class DemoComponent {

  constructor() {}

  @timeout()
  demoMethod() {
    // This code will run at the next tick...
  }

  // With a number
  @timeout(2000)
  demoMethod() {
    // This code will run at the next tick...
  }
}

new DemoComponent().demoMethod();