摘要: 一、在angular中如何使用jQuery npm install jquery --save npm install @types/jquery --sa ve-dev import * as $ from 'jquery'; 二、bootstrap的使用 引入cdn直接使用 npm安装,需要先安 阅读全文
posted @ 2020-01-21 11:15 hannahY 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 基础知识 创建组件 ng g component 组件名称 对ts文件下的@Component的使用 模板 template 不仅可以配置模板地址templateUrl,还可以配置成template:自定义模板内容 设置样式 styles 设置样式不仅可以在@Component下配置styleUrl 阅读全文
posted @ 2020-01-21 11:10 hannahY 阅读(257) 评论(0) 推荐(0) 编辑