Unknown provider: $meteorProvider <- $meteor <- MainController

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

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?

Hi, what version of Angular are you using?

Meteor should be working with Angular 11 at least. As you can see in this tweet.

This is an old project. And its angularjs 1.