本文整理匯總了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);
})