angularjs - unreachable code after return statement Angular Material Failing when linked in index.html -


hi guys im setting new project work im doing trying working keep momentum up. seem having problem getting angular material load properly. im using node , bower modules seems loading them fine.

however when ever im loading page console reports hitting unreachable code after return statement title suggests. being hit in angular material js file being imported bower.

i have no idea why happening , progress past point brilliant thank you.

edit

i possibly have found fix issue having. backend of web application using controlled django , there conflict between angular js , django in using same tags show values variables. stopping angular material instantiating properly. still unreachable code warning material working expect to.

i hope helps people debug problems having when seeing issue.

include minified version of library. automatic semicolon insertion different depending on browser, if library code has return statement broken across 2 lines, might end semicolon 1 shouldn't be. using minified version fixes because statement won't 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>


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -