當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ToastsManager.success方法代碼示例

本文整理匯總了TypeScript中ng2-toastr/ng2-toastr.ToastsManager.success方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript ToastsManager.success方法的具體用法?TypeScript ToastsManager.success怎麽用?TypeScript ToastsManager.success使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ng2-toastr/ng2-toastr.ToastsManager的用法示例。


在下文中一共展示了ToastsManager.success方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: down

    down(item) {
        if (item.quantity == 1)
            return;
        item.quantity -= 1;
        this.toastr.success(this.message.cartUpdate, 'Success!');

    }
開發者ID:hle50,項目名稱:mk2,代碼行數:7,代碼來源:cart.component.ts

示例2: removeItem

    removeItem(item) {

        var current = _.filter(this.share.getCart(), function (obj) {
            return obj.id != item.id;
        });
        this.share.updateCart(current);
        this.toastr.success(this.message.itemRemoved, 'Success!');
    }
開發者ID:hle50,項目名稱:mk2,代碼行數:8,代碼來源:cart.component.ts

示例3:

 this._containerService.waitOperation(operationId).subscribe(operation => {
     if (operation.status_code >= 400) {
         this.toastr.error(operation.err, operation.status);
     } else {
         this.toastr.success('', operation.status);
     }
     this.updateStatus();
 });
開發者ID:jphilaine,項目名稱:lxd-webui,代碼行數:8,代碼來源:container-detail.component.ts

示例4:

 this._authService.signIn(this.email, this.password, (error: any) => {
     if (error) {
         this._toastr.error(error, 'Oops !')
     }
     else {
         this._router.navigate(['/Home']);
         this._toastr.success(this.email, 'Welcome back');
     }
 })
開發者ID:clamarque,項目名稱:Angular2_Dashboard,代碼行數:9,代碼來源:collaborator-signin.component.ts

示例5:

 this._authService.sendPasswordResetEmail(this.email, (error: any) => {
     if(error) {
         this._toastr.error(error, 'Oops !')
     }
     else {
         this._toastr.success(this.email, 'Thank you! an email is sent to you')
         this._router.navigate(['']);
     }
 });
開發者ID:clamarque,項目名稱:Angular2_Dashboard,代碼行數:9,代碼來源:collaborator-reset.component.ts

示例6: onSubmit

 onSubmit() {
     if (this.skill.name != '') {
         this._dataService.postData('skill', this.skill);
         this._router.navigate(['/Home/Skill'])
         this._toastr.success('Skill created')
     }
     else {
         this._toastr.error('Thank you to fill the field', 'Oops!') 
     }
 }
開發者ID:clamarque,項目名稱:Angular2_Dashboard,代碼行數:10,代碼來源:skill-create.component.ts

示例7: onSubmit

 onSubmit() {
     if (this.role.name != '') {
         this._dataService.postDataRole(this.role);
         this._router.navigate(['/Home/Role'])
         this._toastr.success('Role created')
     }
     else {
         this._toastr.error('Thank you to fill the field', 'Oops!')
     }
 }
開發者ID:clamarque,項目名稱:Angular2_Dashboard,代碼行數:10,代碼來源:role-create.component.ts

示例8: onSubmit

 onSubmit() {
     if (this.customer.mission != '' && this.customer.name != '') {
         this._dataService.postDataCustomer(this.customer);
         this._router.navigate(['/Home/Customer']);
         this._toastr.success('Customer created')
     }
     else {
         this._toastr.error('Thank you to fill the fields', 'Oops!')
     }
 }
開發者ID:clamarque,項目名稱:Angular2_Dashboard,代碼行數:10,代碼來源:customer-create.component.ts

示例9:

 this._loginService.login(this.email, this.password, (error: any) => {
     if (error) {
         this._toastr.error('Incorrect username or password', 'Oops !')
     }
     else {
         localStorage.setItem('username', this.email);
         this._router.navigate(['/Home']);
         this._toastr.success( this.email, 'Welcome back');
     }
 })
開發者ID:chaabni,項目名稱:Angular2_Dashboard,代碼行數:10,代碼來源:login.component.ts

示例10: showSuccess

 showSuccess(username) {
     this.toastr.success('Registered user ' + username + ' successfully');
     this.gotoLogin();
 }
開發者ID:dankostiuk,項目名稱:caterme_fullstack_project,代碼行數:4,代碼來源:register.component.ts


注:本文中的ng2-toastr/ng2-toastr.ToastsManager.success方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。