Monday 15 April 2013

angularjs - angular material design toast for forms -


I have found a user login form where it should show a toast message if authentication fails. Here's my controller.

I do not want to start toast with a button click according to the document. Toast message user name and password should not match.

Controller

  app.controller ('userCtrl', function ($ scope, $ MdToast, $ animate) {$ scope.signin = Function (credential) {console.log}; $ mdToast.show ($ mdToast.simple () .content ('Simple Toast!') Position ($ scope.toastPosition)). Hyde Deal (3000));} ;});  

thanks. I got it.

  app .controller ('userctrl', function ($ radius, $ mdToast, $ animate) {$ scope.signin = function (credentials) {console.log (credential); $ mdToast Show ({status: "bottom right", template: "& lt; md-toast & gt; toast! & Lt; / md-toast & gt;"});};});  

did the trick.


No comments:

Post a Comment