I just updated Meteor from 1.10 to 2.4 but on client side I am getting this error in Browser Console:
Error: [$injector:unpr] Unknown provider: $meteorProvider <- $meteor <- MainController
http://errors.angularjs.org/1.5.3/$injector/unpr?p0=%24meteorProvider%20%3C-%20%24meteor%20%3C-%20MainController
I am using Angularjs with Meteor and here is my code of controller:
app.controller('MainController', function ($scope, $meteor, $stateParams, $state, $location) {
$scope.userId = Meteor.userId();
$scope.allUsers = $meteor.collection(function(){return Meteor.users.find({});});
});
Seems like $meteor is no more available to the client. Any fixes for this plz?