I am attempting to activate an Alert Dialog using Angular Material Design.
Within my controller, I have:
angular.module('KidHubApp')
.controller('ActivityCtrl', ['$scope','$meteor', '$stateParams', '$mdDialog', '$state', function($scope, $meteor, $stateParams, $state, $mdDialog){
...
$mdDialog.show(
$mdDialog.alert()
.clickOutsideToClose(true)
.title('No timeslot selected.')
.textContent('Please select a date and a timeslot to make a reservation.')
.ok("Got it!")
.targetEvent(ev)
);
}
However, I am encountering the following error in the console :
TypeError: $mdDialog.alert is not a function
What steps can I take to resolve this issue ?