angular2-aot

    5热度

    2回答

    提前编译(或AoT)是Angular2中提供的一项功能。但我在官方网站上找不到关于它的好解释。 有人可以明确定义它吗?

    0热度

    1回答

    罚款我已经按照从角2例如: https://angular.io/docs/ts/latest/cookbook/aot-compiler.html 编译使用NGC AOT路由不使用的应用程序后,它只是停留在同一页面,没有任何反应。 由于应用程序确实加载了它,这太奇怪了,甚至没有想到当JiT与tsc编译工作以及AoT与ngc编译时可能会出错。 我不认为粘贴代码会帮助这里,但我想知道如果你知道任何工

    2热度

    1回答

    我实现的角2的应用,其利用Kendo UI Grid: 用AOT +汇总部署应用程序时,我卡住: 错误:GridModule'不导出由node_modules \ @progress \ kendo-angular-grid \ dist \ npm \ js \ main.js(由app \ app.module.js导入)。 尝试this从汇总的文件,但我不明白如何配置namedExports

    0热度

    1回答

    我已经使用angular-cli作为scaffolding。我有应用程序模块默认是bieng加载的,而其他模块是lazily加载的。 在运行: ng build -prod --aot 14% building modules 36/37 modules 1 active ...de_modules/css-loader/lib/css-base.js**OrderModule** is not

    0热度

    1回答

    我想要以AoT方式编译我的angular 2项目。不过,我有以下问题。 这里是源代码: /// <reference path="../../typings/index.d.ts" /> import { Injectable, Inject } from '@angular/core'; import { Http } from '@angular/http'; import { AppC

    6热度

    1回答

    我想运行我的角2应用程序的翻译i18n提取工具。 但是当我尝试运行我得到: Failed on type {"filePath":"C:/ng/anbud/src/app/_common/logging-error handler.ts","name":"LoggingErrorHandler"} with error Error: Error encountered resolving symb

    0热度

    2回答

    我需要很快将一个网站投入生产,并且正在研究AOT以提高性能(我的应用程序需要大约3-4秒才能加载Chrome,Firefox需要8-10秒,而这只是不生产可能)。 我也跟着上https://angular.io/docs/ts/latest/cookbook/aot-compiler.html指导,但我坚持与编译部分... 如果键入:node_modules /的.bin/NGC -p tscon

    1热度

    1回答

    在Angular 2中我只想在全局JavaScript变量设置为true(debug布尔值)时在我的ngModule中声明一个指令。 这与TSC编译时工作: declare let isDebug: boolean; let dependencyArray : any[] = []; if ('undefined' !== typeof isDebug && isDebug) {

    1热度

    2回答

    在Angular 2中,我只想为IE9使用散列策略。为此我只有在检测到IE9浏览器时才将路由器配置为使用散列策略。 这与TSC编译时工作: const useHash: boolean = (typeof window.history.pushState) !== 'function'; @NgModule({ declarations: [AppComponent], i