摘要: 1.在 xx.html 中直接 写标签 <a [routerLink]="['/home']">home</a> 2.在 xx.html 中 触发click事件 <button class="btn btn-primary" (click)="Login()">Submit</button> 在xx 阅读全文
posted @ 2017-12-13 15:42 tony_zhu 阅读(2354) 评论(0) 推荐(0)
摘要: 1.在xx.ts中引入css样式无效 @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) 解决:去除 styleUrls中的 ./ 阅读全文
posted @ 2017-12-13 10:53 tony_zhu 阅读(659) 评论(0) 推荐(0)
摘要: 1.cnpm install ngx-bootstrap bootstrap --save ※可能缺少jquery cnpm i jquery 2. 打开 angular-cli.json (项目根目录下) style 节点 增加 "styles": [ "../node_modules/boots 阅读全文
posted @ 2017-12-13 10:46 tony_zhu 阅读(1207) 评论(0) 推荐(0)