It fails at the compile time. When you do a ‘ng serve’, angular CLI explicitly throws an error during the build process.

And if you are using a IDE like Visual Studio, its going to highlight the error immediately too.

Have been using Angular 2/4 for over a month now.

)
Sudarshan Dhondaley

Written by

Passionate Full Stack, Web & Hybrid Mobile App Developer.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade