2016-08-22 12:59:56 +02:00

18 lines
644 B
JavaScript

// Controller of menu dashboard page.
appControllers.controller('menuDashboardCtrl', function ($scope, $mdToast) {
//ShowToast for show toast when user press button.
$scope.showToast = function (menuName) {
//Calling $mdToast.show to show toast.
$mdToast.show({
controller: 'toastController',
templateUrl: 'toast.html',
hideDelay: 800,
position: 'top',
locals: {
displayOption: {
title: 'Going to ' + menuName + " !!"
}
}
});
}// End showToast.
});// End of controller menu dashboard.