Questions tagged «angular7»

20
错误:数据路径“ .builders ['app-shell']”应具有必需的属性“ class”
运行我的应用程序时出现此错误。这是我的申请的详细信息。 Angular CLI: 7.3.3 Node: 10.15.1 Angular: 7.2.7 @angular-devkit/architect -0.13.3 @angular-devkit/build-angular- 0.800.1 @angular-devkit/build-optimizer - 0.800.1 @angular-devkit/build-webpack - 0.800.1 @angular-devkit/core -7.3.3 @angular-devkit/schematics -7.3.3 @angular/cli -7.3.3 @ngtools/webpack -8.0.1 @schematics/angular -7.3.3 @schematics/update 0.13.3 rxjs 6.3.3 typescript 3.2.4 webpack 4.30.0 我已经尝试过清理缓存。
159 angular6  angular7 

4
Angular 2/4/6/7-使用路由器进行单元测试
在Angular 2.0.0中,我正在对使用路由器的组件进行单元测试。但是我得到“提供的参数与呼叫目标的任何签名都不匹配。” 错误。在spec.ts中的Visual Studio代码中,新的Router()以红色突出显示 如果有人能让我知道正确的语法,我将不胜感激。提前致谢。我的代码如下: 规格 import { TestBed, async } from '@angular/core/testing'; import { NavToolComponent } from './nav-tool.component'; import { ComponentComm } from '../../shared/component-comm.service'; import { Router } from '@angular/router'; describe('Component: NavTool', () => { it('should create an instance', () => { let component = new NavToolComponent( new ComponentComm(), …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.