angular-upgrade

    0熱度

    1回答

    說表達綁定我有一個複選框指令即時重寫到角從angularjs checkbox.directive.js(angularjs) template: `<some html> ...`, scope: { checked: '=', onChecked: '&' } checkbox.component。 TS(角) @Component({ selector: 'checkbox'

    1熱度

    1回答

    我目前正在使用Angular CLI將AngularJS應用升級到Angular應用。 我的問題是,當我使用ng build構建應用程序時,它會將所有文件複製到dist文件夾,但會忽略所有的AngularJS文件。 對於所有的js文件,我的解決方案是將它們添加到中的scripts陣列。 現在,我只需要處理html文件。對於Angular應用程序,角度cli會自動爲我處理它們,但AngularJS會

    0熱度

    1回答

    我有一個大致遵循Victor Savkin的Lazy Loaded AngularJS guide的混合角度cli。 AngularJS在LazyLoaded Angular模塊的構造函數中引導。我的應用程序和指南的主要區別在於我試圖在某些Angular組件中包裝<ui-view>指令。由於我的佈局結構如何,當AngularJS被引導時,<ui-view>元素將不可用,並且可能隨時添加或刪除。 i

    0熱度

    1回答

    我想升級AngularJS服務提供商(TranslateProvider),它從$get函數返回一個接口的實例。 問題是,在角提供程序對象(translateProvider)中,provide字段應該是Translate,但它不能使用,因爲TypeScript接口僅用於編譯時。這是錯誤我得到: TS2693: 'Translate' only refers to a type, but is b

    0熱度

    2回答

    我正在寫一個angular1 + angular2混合應用程序,它使用webpack作爲包打包器。 在我的代碼導入庫(@角/升級)以這種方式 import { UpgradeModule } from '@angular/upgrade/static'; 角的升級庫與下面的樹結構(簡體)坐在node_module文件夾: @angular/upgrade ├── bundles │   ├

    1熱度

    2回答

    我已經升級/混合AngularJS /角2應用程序,我得到這個錯誤: Unhandled Promise rejection: Cannot add property resumeBootstrap, object is not extensible ; Zone: ; Task: Promise.then ; Value: TypeError: Cannot add property resum

    4熱度

    1回答

    我試圖從'@ angular/upgrade/static'導入{UpgradeComponent} ; 使用ngupgrade在angular2中使用angular1指令,但我得到這個錯誤。 代碼: import { Directive, ElementRef, Injector } from '@angular/core'; import { UpgradeComponent } from