本文整理汇总了TypeScript中angular.ILogService.warn方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ILogService.warn方法的具体用法?TypeScript ILogService.warn怎么用?TypeScript ILogService.warn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类angular.ILogService
的用法示例。
在下文中一共展示了ILogService.warn方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
function (event, unfoundState, fromState, fromParams) {
$log.warn('$stateNotFound', {
event: event,
unfoundState: unfoundState,
fromState: fromState,
fromParams: fromParams
});
});
示例2: filter
}).then((searchResults: ISearchResults<ISecurityGroupSearchResult>) => {
let result: ISecurityGroup[] = [];
if (!searchResults || !searchResults.results) {
this.$log.warn('WARNING: Gate firewall endpoint appears to be down.');
} else {
result = filter(searchResults.results, { application: applicationName });
}
return result;
});
示例3: calcPriceForAll
calcPriceForAll(orderLineItems: ILineItem[], date: string): number {
if (orderLineItems.length === 0) {
return 0;
}
let prices = this.getPricesFromLocalStorage(date);
if (isEmpty(prices)) {
return 0;
}
const orderGroupKey = this.groupKeyForLineItems(orderLineItems);
let price = prices[orderGroupKey];
if (isNil(price)) {
price = this.calcFallbackPriceFor(orderLineItems, prices);
this.$log.warn('Price: Price not found! Calculate sum of product prices.', price, orderLineItems, prices);
}
return price;
}
示例4:
.catch((failure: IHttpPromiseCallbackArg<any>) => {
this.$log.warn(`failed to retrieve gist for what's new dialog:`, failure);
return null;
});
示例5:
.catch(e => {
this.$log.warn('Could not initialize accounts: ', e && e.message);
return [];
});
示例6:
.catch((error: any) => {
this.$log.warn(`Failed to load accounts for provider "${provider}"; exception:`, error);
return [];
});
示例7:
.catch(err => {
this.$log.warn('PaymentController: Unable to fetch unpaid orders', err);
})