I am not sure what the error is, as I have not made any changes to my code and everything was working fine before. The compiler is successfully compiling. I am using Angular CLI. The page is not displaying and only shows "Loading...". In the console I see an error https://i.sstatic.net/rLyqu.png Uncaught TypeError: Cannot read property 'apply' of undefined
I have tried clearing my browser's cache but still cannot find a solution to this problem. I have checked all the code and everything seems correct.