I am having diffculty injecting this dependency: https://cdnjs.cloudflare.com/ajax/libs/angularjs-dropdown-multiselect/2.0.0-beta.10/src/angularjs-dropdown-multiselect.js into my project.
Here is the dependency injection scheme used in the project:
angular.module("myModule").controller("myController", MyController);
function MyController($scope, $window, angular-js-dropdown-multiselect ){
}
MyController.$inject = ["$scope", "$window", "angular-js-dropdown-multiselect"]
However angular throws a Error: $injector:unpr Unknown Provider error.
I've tried changing angular-js-dropdown-multiselect to angularJsDropdownMultiselect but still see the error.
Any suggestions?
Thanks, Matt
angular-js-dropdownMultiselect
being a syntax error – baao