Added recompile check to prevent flickering on route directives