我在StackOverflow和其他网站上看了看,我看到或尝试过的任何东西似乎都没有帮助,所以我在这里发表了这篇文章。 当我构建一个简单的ng b时,一切都运行得很好。当我使用ng b --prod --aot=true构建我们的应用程序,然后运行它时,我得到了以下异常: ERROR TypeError: Object(...) is not a function
at CG.getAPIURLs (main.f5019b5d20f499feb949.js:1)
at new Ou (main.f5019b5d20f499feb949.js:1)
at Sn (mai
我用的是万能的.
我的app.node.module.ts看起来是这样的:
/**
* This file and `main.browser.ts` are identical, at the moment(!)
* By splitting these, you're able to create logic, imports, etc that are "Platform" specific.
* If you want your code to be completely Universal and don't need that
* You c
我刚刚设置了一个新的Angular项目,并在我的AppRouting模块中添加了两个组件路由。
当我尝试访问路由时,我得到以下错误:
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'cr-calculator'
Error: Cannot match any routes. URL Segment: 'cr-calculator'
at ApplyRedirects.noMatchError (router.js:4396)
at
今天使用角CLI +角质材料的新项目。
转到导入RouterModule和从'app.module.ts‘文件中的@ Routes /路由器路由,将RouterModule和路由添加到导入中,并得到以下错误:
ERROR in src/app/app.module.ts(18,5): error TS2693: 'Routes' only refers to a
type, but is being used as a value here.
不知道怎么解决这个问题。这是密码。
import { BrowserModule } from '@angular/pl
我将使用Range7Framework开发一个非常大的应用程序。
我已经创建了一个空白的角工作区
ng new angular-app --create-application=false
在这个工作区中,我使用以下命令创建了两个角应用程序:
ng generate application app-one
ng generate application app-two
在这两个应用程序中的每个应用程序中,我都将有多个组件,每个组件彼此独立工作。
我正在寻找一种方法来为每个组件创建一个单独的javascript构建文件,以减少构建大小。
并使用每个单独构建的js文件将每个组件用作web组