Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdToast not hiding #650

Closed
sushitommy opened this issue Nov 14, 2014 · 0 comments
Closed

mdToast not hiding #650

sushitommy opened this issue Nov 14, 2014 · 0 comments
Milestone

Comments

@sushitommy
Copy link

app.controller('testCtrl', function ($rootScope, $scope, $mdToast) 
{   

    $scope.showAndHideToast = function ()
    {
        $mdToast.show({
                template: '<md-toast>test</md-toast>',
                hideDelay: 0,
                position: 'bottom right'
          });
        // do stuff
        $mdToast.hide();
    }
}

The toast is showing up but not hiding.
TypeError: undefined is not a function at Object.onRemove (../angular-material/angular-material.js:4240:13) at Object.InterimElement.self.remove (../angular-material/angular-material.js:5103:29)
at Object.hide (../angular-material/angular-material.js:5032:40) ..
What is the reason that this not working?

@ThomasBurleson ThomasBurleson added this to the 0.6.0-rc1 milestone Nov 14, 2014
rschmukler added a commit that referenced this issue Nov 16, 2014
rschmukler added a commit that referenced this issue Nov 17, 2014
rschmukler added a commit that referenced this issue Nov 17, 2014
rschmukler added a commit that referenced this issue Nov 17, 2014
rschmukler added a commit that referenced this issue Nov 17, 2014
rschmukler added a commit that referenced this issue Nov 17, 2014
rschmukler added a commit that referenced this issue Nov 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants