Can we use arrow functions in AOT?

No, Arrow functions or lambda functions cannot be used to assign values to the decorator properties. If the users still use arrow function, it generates an error node in place of the function. When the compiler later interprets this node, it reports an error to turn the arrow function into an exported function.