[Answered ]-Unreachable code after return statement Angular Material Failing when linked in index.html

2👍

Include the minified version of the library. Automatic Semicolon Insertion is different depending on your browser, if the library code has a return statement broken across two lines, it might end up with a semicolon where one shouldn’t be. Using the minified version fixes this because the statement won’t be broken across lines.

Include this:

<script src="bower_components/angular-material/angular-material.min.js"></script>

Instead of this:

<script src="bower_components/angular-material/angular-material.js"></script>

Leave a comment