Uncaught Error: [$injector:modulerr] Failed to instantiate module myapp due to:
Error: [$injector:nomod] Module 'myapp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
经过我坚持不懈的尝试,终于发现,Error的原因是js代码有语法错误,代码改正确以后,错误就没有啦。