- Angular 6 for Enterprise:Ready Web Applications
- Doguhan Uluca
- 80字
- 2021-06-25 21:20:35
Declarations
The AppComponent should create the app test is failing. If you observe the error details, you'll see that AppComponent is failing to be created, because 'app-current-weather' is not a known element. Further, the error occurs if pointed out with a [ERROR ->] tag, and the last line spells things out for us, similar to the error originating from line 6 in AppComponent.html.
Include CurrentWeatherComponent in the declarations of app.component.spec.ts:
src/app/app.component.spec.ts
...
TestBed.configureTestingModule({
declarations: [AppComponent, CurrentWeatherComponent],
}).compileComponents()
...
推薦閱讀
- Mastering Machine Learning for Penetration Testing
- 異構(gòu)基因共表達(dá)網(wǎng)絡(luò)的分析方法
- PLC、現(xiàn)場總線及工業(yè)網(wǎng)絡(luò)實(shí)用技術(shù)速成
- 面向物聯(lián)網(wǎng)的嵌入式系統(tǒng)開發(fā):基于CC2530和STM32微處理器
- 計(jì)算機(jī)網(wǎng)絡(luò)原理與應(yīng)用技術(shù)
- 數(shù)字調(diào)制解調(diào)技術(shù)的MATLAB與FPGA實(shí)現(xiàn):Altera/Verilog版(第2版)
- 光纖通信系統(tǒng)與網(wǎng)絡(luò)(修訂版)
- 網(wǎng)管工具使用與技巧大全
- 夢工廠之材質(zhì)N次方:Maya材質(zhì)手冊
- 工業(yè)互聯(lián)網(wǎng)創(chuàng)新實(shí)踐
- 物聯(lián)網(wǎng)工程導(dǎo)論(第3版)
- 現(xiàn)代通信系統(tǒng)(第5版)
- 云計(jì)算技術(shù)與標(biāo)準(zhǔn)化
- 基于IPv6的家居物聯(lián)網(wǎng)開發(fā)與應(yīng)用技術(shù)
- SRv6網(wǎng)絡(luò)部署指南