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
I have the same problem, but I resolved adding jquery.min.js before angular.min.js.
I had the same error and fixed it. It turned out to be a silly reason.
This was the culprit:
<script src="app.js"/>
Fix:
<script src="app.js"></script>
Make sure your script tag is ended properly!
I got this error when my service declaration was inside a non-invoked function (IIFE). The last line below did NOT have the extra () to run and define the service.
(function() {
"use strict";
angular.module("reviewService", [])
.service("reviewService", reviewService);
function reviewService($http, $q, $log) {
//
}
}());