Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.controller('AppCtrl', function($scope, $mdToast, $animate) {
- $scope.toastPosition = {
- bottom: false,
- top: true,
- left: false,
- right: true
- };
- $scope.showWatchlistToast = function() {
- $mdToast.show({
- controller: 'ToastCtrl',
- templateUrl: 'toast-template.html',
- hideDelay: 6000,
- position: 'top left'
- });
- };
- $scope.items= [{
- name: 'some name',
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement