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


TypeScript NotificationsService.info方法代碼示例

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


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

示例1: logout

 logout() {
   localStorage.removeItem('access_token');
   this.notify.info('Logged out', 'Goodbye');
   setTimeout(() => {
     this.router.navigate(['/login']);
   }, 10);
 }
開發者ID:MuhammedHasan,項目名稱:metabol,代碼行數:7,代碼來源:login.service.ts

示例2: Unshield

 Unshield(post){
   this.http.put('/api/post/'+post._id, {isShielded: false}).subscribe();
   post.isShielded = false;
   this._notificationsService.info(
     '取消隱藏博客',
     '文明上網~',
     {
         timeOut: 2000,
         showProgressBar: true,
         pauseOnHover: true,
         clickToClose: false
     });
 }
開發者ID:CarolSum,項目名稱:MEAN-Blog,代碼行數:13,代碼來源:post-manage.component.ts

示例3: if

 this.playerLevel$.subscribe( (lvl) => {
     if (first) {
         first = false;
     } else if (lvl >= GLOBALS.zoneLevelingMinLevel && (lvl % 5) == 0) {
         console.log("You earned a Zi token. Yay.");
         this.stats.ziTokens++;
         this.Toasts.info(
             `Level ${lvl}`,
             `Gained a Zone Improvement token`,
             {
                 timeOut: 5000
             }
         );
     }
 });
開發者ID:colinmorris,項目名稱:Incremental,代碼行數:15,代碼來源:player.service.ts

示例4: deleteComment

 deleteComment(comment){
   this.http.delete('/api/comment/'+comment._id).subscribe();
   this._notificationsService.info(
     '刪除評論成功',
     '堅決抵製惡意評論~',
     {
         timeOut: 2000,
         showProgressBar: true,
         pauseOnHover: false,
         clickToClose: false
     });
   this.http.get<Comment[]>('/api/comments').subscribe(data => {
     this.comments = data;
   });
 }
開發者ID:CarolSum,項目名稱:MEAN-Blog,代碼行數:15,代碼來源:comment-manage.component.ts

示例5: info

 info(content: string, title: string = 'Información', override?: any) {
   return this.notification.info(title, content, override);
 }
開發者ID:sergiocosus,項目名稱:ventamatic.frontend,代碼行數:3,代碼來源:notify.service.ts

示例6: info

 info(title, msg) {
   this.show();
   this.delegate.info(title, msg);
 }
開發者ID:rmannibucau,項目名稱:rblog,代碼行數:4,代碼來源:notification.service.ts

示例7: info

 info(description){
   this.notificationService.info('Success', description);
 }
開發者ID:control-tower,項目名稱:ct-ui,代碼行數:3,代碼來源:notification.ts


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