Ich versuche, einen Alarm Dialog mit kantigem Material Design zu aktivieren.
In meinem Controller, ich habe:
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)
);
}
Allerdings bin ich in der Konsole bekommen:
TypeError: $mdDialog.alert is not a function
Wie kann ich dieses Problem lösen?
in der Entwicklerkonsole zu testen .. –