Rule: contextual-life-cycle

Ensure that classes use allowed life cycle method in its body

Rationale

Some life cycle methods can only be used in certain class types. For example, ngOnInit() hook method should not be used in an @Injectable class.

Notes:
TS Only

Config

Not configurable.

Examples
Schema
null