Reputation: 1293
I am getting the following error message in the Chrome debugging tools console
Unknown provider: $mdDialogProvider <- $mdDialog
Here is my controller
var studentApp = angular.module('StudentApp', []);
studentApp.controller('StudentController', ['$scope', '$mdDialog', '$http', function ($scope, $mdDialog, $http) {
// Code here
}]);
Do I need to inject something at this line?
var studentApp = angular.module('StudentApp', []);
Upvotes: 0
Views: 6379
Reputation: 334
You need to Load File Path
src="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"
you need to inject ngMaterial
in your module creation. Such like that:
angular.module('firstApplication', ['ngMaterial'])
Upvotes: 4