本文整理汇总了TypeScript中ng2-toastr/ng2-toastr.ToastsManager.info方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ToastsManager.info方法的具体用法?TypeScript ToastsManager.info怎么用?TypeScript ToastsManager.info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ng2-toastr/ng2-toastr.ToastsManager
的用法示例。
在下文中一共展示了ToastsManager.info方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: if
this.service.like(this.travelId, 0).subscribe((status) => {
if (this.travelLikesData.UserLikeStatus === 1) {
this.travelLikesData.LikesCount--;
} else if (this.travelLikesData.UserLikeStatus === -1) {
this.travelLikesData.DislikesCount--;
} else {
this.notificationManager.info("status: " + this.travelLikesData.UserLikeStatus);
}
this.travelLikesData.UserLikeStatus = status;
this.notificationManager.info("Panaikintas statusas");
},
示例2:
this.service.like(this.travelId, -1).subscribe((status) => {
if (this.travelLikesData.UserLikeStatus === 1) {
this.travelLikesData.LikesCount--;
}
this.travelLikesData.UserLikeStatus = status;
this.travelLikesData.DislikesCount++;
this.notificationManager.info("jums nepatinka ši kelionė");
},
示例3: retrievePlaylist
public retrievePlaylist(): void {
if (!this.playlistId) {
this.toastr.error('Please provide a playlist id');
return;
}
this.toastr.info('Retrieving playlist...');
this.subscription = this.apiService.getPlaylistItems(this.playlistId, 50).subscribe((data) => {
this.resultJson = data;
console.log(data)
}, error => this.handleError(error));
}
示例4:
this._dataService.getAllData('mission').then((snapshot) => {
this.data = snapshot.val();
if (this.data != null) {
Object.keys(this.data).forEach((key) => {
if (this.data[key].name != this.customer.mission) {
delete this.data[key];
}
})
}
else{
this._toastr.info('no mission there . Please create a mission for this customer');
}
this.list_missions = this._objecToArrayPipe.transform(this.data);
})
示例5: showInfo
showInfo() {
this.toastr.info('You are deleted something.', 'Information !');
}
示例6: info
info(text: string) {
this.toastr.info(text);
}
示例7: cancelSettings
cancelSettings(): void {
this._notificationService.info("nustatymai neišsaugoti");
this.router.navigate(["ToursList"])
}
示例8: notAuthMessage
private notAuthMessage(err) {
if (err.status == 401) {
this.notificationManager.info("Prisijunkite prie sistemos norėdami vertinti kelionę");
}
}
示例9: setTimeout
setTimeout(() => {
this._toastr.info(`${achievement.name} (+${achievement.points})`, achievement.description);
}, 500);