Made the solution aware of different versions of Angular