Skip to content

vasudevan-palani/ng5-decorators

Repository files navigation

ng5-decorators

This module/package will provide few useful decorators that can be used to speed up the development.

For now the list is

  • OnEvent
  • EventAfter
  • EventBefore

Usage is

export class AppComponent {
  title = 'app';

  content = '<h1>\n  I am content from the server, just normal HTML\n</h1>\n<my-component name="hello">I am the projected content!</my-component>';

  @EmitBefore("AppComponent/submit")
  submit(test){
    console.log("In Submit",this);
  }

  @OnEvent("AppComponent/submit")
  test(){
    console.log("In test");
  }

  @OnEvent("AppComponent/submit")
  test1(){
    console.log("In test1");
  }

}

Set up

Step 1

  npm install ng5-decorators --save

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published