1.在xx.ts中引入css样式无效

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
解决:去除 styleUrls中的  ./
            styleUrls: ['app.component.css']
 
2. 在引入bootstrap4 时 缺少 popper,js

      解决:.angular-cli.json 文件中scripts节点 ,引入的bootstrap.min.js 更换为

../node_modules/bootstrap/dist/js/bootstrap.bundle.js
 
 
 
 
 
 
3.局部路由跳转到其他页面,其页面宽度高度是根据内容。要使其根据整体100%
 

解决:在 其组件中的css 文件中添加样式

使用:host伪类选择器,用来选择组件宿主元素中的元素(相对于组件模板内部的元素)

:host {
width: 100%;
height: 100%;
padding: 0px;
margin: 0px;
}
 
4.引入ngx-echarts,在全部配置完成后,报错!!!
百度N久没法解决, 在GitHub上翻了下Issues,发现

发现可能是包冲突,删除node_modules文件夹,重新npm 后正常

最新文章

  1. Integrating SharePoint 2013 with ADFS and Shibboleth
  2. oracleDBA-D3
  3. Java 8 Stream API详解--转
  4. JQ first-child与:first的区别以及nth-child(index)与eq(index)的区别
  5. JVM 垃圾回收器工作原理及使用实例介绍(转载自IBM),直接复制粘贴,需要原文戳链接
  6. 嵌入式Linux驱动学习之路(十)字符设备驱动-my_led
  7. C#对于sql server数据库的简单操作
  8. 如何删除MyEclipse(eclipse)中不需要的workspace
  9. NYOJ 1091 超大01背包(折半枚举)
  10. HDU 2227 Find the nondecreasing subsequences (线段树)
  11. 使用Jenkins进行持续集成ionic3项目
  12. kali 2.0中msf连接postgres数据库
  13. Python网络爬虫入门篇
  14. js 冒泡排序与快速排序
  15. ELK日志监控平台安装部署简介--Elasticsearch安装部署
  16. (二)Wireshark的实用表格
  17. ajax-----readyState总结
  18. My SQL随记 002 登陆
  19. Codeforces 884C.Bertown Subway ----判环,思路
  20. const关键字浅析

热门文章

  1. dhlin-vim-wiki
  2. luogu P3116 [USACO15JAN]会议时间Meeting Time
  3. luogu P1579 哥德巴赫猜想(升级版)
  4. OpenSSL使用3(基本原理及生成过程)(转)
  5. Xocde 自动注释插件
  6. Learn How To Attach PL/SQL Library In Oracle Forms
  7. iOS -- iOS11新特性,如何适配iOS11
  8. tomcat下配置https方式
  9. 在Mac上ppt导出pdf
  10. [原创] 浅谈开源项目Android-Universal-Image-Loader(Part 3.1)