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


TypeScript ILogService.warn方法代碼示例

本文整理匯總了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
     });
 });
開發者ID:egilsster,項目名稱:ionic-webpack-typescript,代碼行數:8,代碼來源:index.run.ts

示例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;
    });
開發者ID:mizzy,項目名稱:deck,代碼行數:10,代碼來源:securityGroupReader.service.ts

示例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;
  }
開發者ID:lunches-platform,項目名稱:fe,代碼行數:19,代碼來源:price.ts

示例4:

 .catch((failure: IHttpPromiseCallbackArg<any>) => {
   this.$log.warn(`failed to retrieve gist for what's new dialog:`, failure);
   return null;
 });
開發者ID:jcwest,項目名稱:deck,代碼行數:4,代碼來源:whatsNew.read.service.ts

示例5:

 .catch(e => {
   this.$log.warn('Could not initialize accounts: ', e && e.message);
   return [];
 });
開發者ID:robfletcher,項目名稱:deck,代碼行數:4,代碼來源:versionedCloudProvider.service.ts

示例6:

 .catch((error: any) => {
   this.$log.warn(`Failed to load accounts for provider "${provider}"; exception:`, error);
   return [];
 });
開發者ID:robfletcher,項目名稱:deck,代碼行數:4,代碼來源:account.service.ts

示例7:

 .catch(err => {
   this.$log.warn('PaymentController: Unable to fetch unpaid orders', err);
 })
開發者ID:lunches-platform,項目名稱:fe,代碼行數:3,代碼來源:payment.component.ts


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