Custom Interception Points
Register
component{
function configure(){
interceptorSettings = {
customInterceptionPoints = 'onCustomEvent'
};
}
}Announce
component{
property name="InterceptorService" inject="InterceptorService";
function doSomethingAmazing(){
interceptorService.announceInterception(
state='onCustomEvent',
interceptData={
data='foo',
moreData='bar'
}
);
}
}Last updated
Was this helpful?