typescript1.5

    3熱度

    4回答

    我正在嘗試Angular2使用手稿,但我有一個問題與TSC。 這是我tsconfig.json文件: { "compilerOptions": { "module": "commonjs", "noImplicitAny": true, "removeComments": true, "preserveConstEnums": true, "ou

    3熱度

    2回答

    在Java中,我們可以使用「類路徑掃描」找到具有給定註釋的所有類。 我們如何在TypeScript中做類似的事情?有沒有辦法找到所有裝飾有裝飾的班級?

    12熱度

    2回答

    我發現這篇文章與Polymer 0.5(http://www.mikecann.co.uk/programming/tinkering-with-google-polymer-and-typescript/)一起使用,因爲它能夠使用Typescript Classes for Polymer Elements。這種方法不再適用於Polymer 1.0。我試圖 class CreatorStudio

    0熱度

    1回答

    我已經實現了一個控制器使用typescript和角度js和獲取數據的響應,但也有一些問題,當我試圖綁定數據與我grid.I使用ng轉發器它。 我宣佈我的HTML頁面控制器: - ng-controller="CustomerCtrl as custom" ,我試圖訪問它在我的控制器: - ng-repeat="cust in custom.cust_File ,比 Full Name: {

    2熱度

    1回答

    我用Typescript 1.5.0測試版創建了一個非常簡單的項目,其中包括三個/三個與tsd的類型。編譯時,tsc輸出128個錯誤重複標識符'標識符'。我不確定128是否正是tsc開始截斷錯誤的地方,所以可能會有更多... 我通過創建一個空白文件夾並創建app.ts和index.html來啓動項目。然後我安裝threejs /三相使用以下命令: tsd install threejs/three

    7熱度

    2回答

    我正在關注官方Angular2網站上的教程。 https://angular.io/docs/js/latest/guide/displaying-data.html 這裏是我的.ts文件: /// <reference path="typings/angular2/angular2.d.ts" /> import {Component, View, bootstrap, For} from '

    0熱度

    1回答

    我想創建一個單獨的ts文件(例如:imports.ts),它將包括我所有的導入語法和哪個組件文件將需要導入我只想引用導入文件而不是寫入全套進口,請告訴我怎樣才能達到這個目標。 例子: imports.ts應該像 import {Component, View, bootstrap} from 'angular2/angular2'; import {foo} from 'fooMod'; 和

    0熱度

    1回答

    語境 我米深化發展中,我需要在一個方法來加載陣列等 getRouteFromLink(link:String):Array { array = require(link); return array; } 它的應用程序存在一些東西讓我有可能在沒有在文件頂部聲明它?

    6熱度

    5回答

    我打算通過angular2.0演示應用程序,但似乎注射器不從構建24工作,並給我錯誤爲 「原始錯誤:無法解析MyAppComponent的所有參數。確保他們都有有效的類型或註釋。「 ,直到建立23其工作正常,請幫助我的問題 下面是演示代碼,我提出了從最初的幾個操作只是爲了學習目的 import {Component, View, bootstrap, NgFor} from 'angular2/a

    2熱度

    1回答

    我嘗試使用新的Angular 2 Forms。我的import語句如下: import {bootstrap, onChange, NgIf, Component, Directive, View, Ancestor} from 'angular2/angular2'; import {formDirectives, NgControl, Validators, NgForm} from 'an