AngularJS: Uncaught Error: [$injector:modulerr] Failed to instantiate module?

后端 未结 6 1434
清酒与你
清酒与你 2020-11-30 03:26

I am new to AngularJS and working my way through some documents and tutorials to learn. My question is in reference to Egghead\'s video series, this video in particular, dem

6条回答
  •  有刺的猬
    2020-11-30 04:13

    For people having the same error with a similar code:

    $(function(){
        var app = angular.module("myApp", []); 
        app.controller('myController', function(){
    
        });
    });
    

    Removing the $(function(){ ... }); solved the error.

提交回复
热议问题