@After
export declare let After: (value: string) => Function;
@After decorator is used to bind route action name to method
@Controller({
name: "home"
})
export class HomeController {
@Action("index")
processIndexAction() {
return this.viewService.compileTemplate("home/index", {data: "HTML STRUCTURE"});
}
@After("index")
afterIndexAction(@Chain data) {
return this.service.modifyCompiledHtml(data);
}
}
This will match route home/index route or moduleName/home/index.