Struggling to incorporate ngAnimate
into my list of angular app dependencies. Below is a snippet from my angular app file:
var carApp = angular.module("carApp", ["ngAnimate"]);
Next, we have the TableBodyCtrl
controller:
carApp.controller("TableBodyCtrl", function($scope, $http){
$scope.loading = false;
...
});
And here's the TablePanelCtrl
:
carApp.controller("TablePanelCtrl", function(){
this.tab = 1;
...
});
The controllers are stored in separate files within the controller
folder.
Now, let's load the necessary angular libraries:
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/angular-animate.min.js"></script>
Include the angular app file:
<script type="text/javascript" src="js/carApp.js"></script>
Finally, add the controllers:
<script type="text/javascript" src="js/controllers/TablePanelCtrl.js"></script>
<script type="text/javascript" src="js/controllers/TableBodyCtrl.js"></script>
Encountering an error upon running the web-app:
Unknown provider: $$qProvider <- $$q <- $animate <- $compile
https://docs.angularjs.org/error/$injector/unpr?p0=$$qProvider%20%3C-%20$$q%20%3C-%20$animate%20%3C-%20$compile
This issue arose after adding "ngAnimate"
to the dependencies.
Any ideas on how to resolve this?