typescript

    1熱度

    1回答

    我想讓我的應用程序在離子3上生成模式。我嘗試 ionic cordova run android --prod --release 但我一直錯誤: Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel

    1熱度

    1回答

    後端和Typescript工作正常,因爲在瀏覽器網絡選項卡我得到我想要的,我的問題是,我被困在HTML ...我不知道如何顯示數據。 這裏是我什麼,我進入控制檯從我的Web API 2: { "Id":1, "Name":"testete", "Description":"Test", "DueDate":"2017-1205T15:14:27.307", "IsCompleted":t

    2熱度

    1回答

    以下代碼取自角度源代碼di.ts。 export interface AttributeDecorator { (name: string): any; new (name: string): Attribute; } 我明白這是一個接口。但new (name: string): Attribute正在做什麼,爲什麼有兩種類型的名稱,string and any。 上述代

    0熱度

    1回答

    我的.tsx文件沒有轉換爲.jsx和.js 我正在使用visual studio代碼。保存.tsx文件不會轉換爲.jsx文件。我需要爲此安裝任何插件嗎? 下面是我tsconfig.json { "compileOnSave": true, "compilerOptions": { "outDir": "build/dist", "module

    0熱度

    1回答

    我使用jsoendermann/rn-section-list-get-item-layout NPM包,以幫助我定義getItemLayout屬性SectionList。我需要定義getItemLayout屬性才能運行scrollToLocation()。 文檔狀態,它應該這樣被使用: import sectionListGetItemLayout from 'react-native-sect

    1熱度

    2回答

    我想創建一個示例excel文件,但我得到錯誤'fs.createWriteStream不是一個函數'。下面 是代碼來創建文件 - import { Component } from '@angular/core'; import { NavController, Platform } from 'ionic-angular'; import * as Excel from "exceljs/d

    4熱度

    2回答

    我正在用Angular 4和websocket創建聊天應用程序。對於這一點,我已經按照這個Angular websocket tutorial 這裏是WebsocketService源代碼: import { Injectable } from '@angular/core'; import * as Rx from 'rxjs/Rx'; @Injectable() export clas

    0熱度

    1回答

    在我的應用程序中有2個模塊,即AppModule和UserModule。 但我在共享AppComponent和LoginComponent(它是UserModule的一部分)之間的數據共享時遇到問題。 這裏是app.component.html <ul class="nav navbar-nav lg-nav visible-lg visible-md"> <li><a routerL

    1熱度

    1回答

    當我運行時:ionic cordova run android --device一切都很好,但是當我嘗試使用--prod標誌時。即使我認爲我使用<ion-input>的(onFocus)屬性,輸入點擊也不會顯示鍵盤。 這裏是我的離子信息: cli packages: (C:\Users\Houssem\AppData\Roaming\npm\node_modules) @ionic/c

    0熱度

    1回答

    類 我試圖總結每個router.navigateByUrl一類的函數實例化和打算調用相關地方的功能。但是這樣做拋出'Supplied參數不匹配任何調用目標的簽名'。我跟隨在這麼少的其他環節,但沒有一個似乎是有幫助的在我的情況 commonRouter.ts // have wrapped navigation to home in homePage // so wherever is neede