I am fairly new to angular and using it with JSON api files. TO test, I am trying to use the free github api (my names for functions are for a different json api that i will be working with later). I just wanted to see if my functions were working with console.log()
, but i receive this error in the console.
Uncaught Error: [$injector:modulerr] Failed to instantiate module
MesaViewer due to: Error: [$injector:nomod] Module 'MesaViewer' 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.
I have spelled MesaViewer
the exact same in both, and dependencies are seen in the second line!
var app = angular.module("MesaViewer");
var MainController = function($scope, $location, $http, $routeParams) {
What did I do wrong?
Here is my plunk: http://plnkr.co/edit/sZPaFbzbOB6AmVCLL1vq
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…