Example #1
0
      user.signUp().then(function(result){
        notif.hideLoading();
        _this.clearForm();
        _this.transitionToRoute('first');
        notif.success('Signed up succesfully');

      },function(reason){
Example #2
0
 },function(reason){
   notif.hideLoading();
   _this.set('errors', reason.responseJSON.error);
 });
Example #3
0
 note.destroyRecord().then(function(){
   notif.hideLoading();
   _this.transitionToRoute('first');
   notif.success('Note deleted');
 });