However, in the most recent versions of Angular,class-based guardshave been deprecated in favor of functional guards. To achieve the same result as implementing an interface, a function can now be used instead.