
angular6
阿龙sir
这个作者很懒,什么都没留下…
展开
-
mvc(vue、ng...) 引用数据与被引用数据被关联更改的解决方案
使用转字符串再转回json的方法JSON.parse(JSON.stringify(this.obj));这样引用数据发生改变,被引用数据却不会改变原创 2020-03-19 19:54:39 · 267 阅读 · 0 评论 -
angular6.1项目文件解释
1.根目录1.1三大目录e2e目录:是端到端(end-to-end)测试;mode_modules目录:是angular6.1项目所依赖的第三方模块库文件;src目录:这时放置了我们项目的所有文件。1.2其他文件:.editorconfig: 给你的编辑器看的一个简单配置文件.gitignore: git 排除文件angular.json: angular cli 的配...转载 2018-12-10 16:17:02 · 489 阅读 · 1 评论 -
angular calendar 日历控件
https://mattlewis92.github.io/angular-calendar/#/kitchen-sink转载 2018-12-17 10:12:04 · 4559 阅读 · 0 评论 -
ng组件冲突 样式修改: :host ::ng-deep
在使用一些第三方的组件的时候,要修改组件的样式。这种情况下使用::host ::ng-deep .className{ 新的样式......}这样的方式就可以方便的修改样式了。比如领导嫌nz-timeline组件垂直距离太大,希望整个界面紧凑一点。我们就可以在使用了该组件的的组件中引入这样的CSS代码://修改ant-timeline-item之间的间距:hos...转载 2018-12-23 11:47:14 · 6933 阅读 · 0 评论 -
ng 富文本编辑框
http://www.ionic.wang/article-index-id-103.htmlhttps://www.cnblogs.com/scott-j/p/9016027.html github地址:https://github.com/KillerCodeMonkey/ngx-quill转载 2018-12-23 21:20:06 · 583 阅读 · 0 评论 -
angular5 路由生命周期
Angular 5.0 来了! 有这些大变化https://blog.youkuaiyun.com/li420520/article/details/84500092路由器生成周期事件我们给路由器添加了新的生命周期事件,让开发者可以跟踪running guard启动到激活完成的各个阶段。这些事件可在有子组件更新时,在一个特定的路由器出口上展示加载动画,或者测量性能。新的事件(按顺序)是Guar...转载 2019-01-29 18:42:02 · 1023 阅读 · 0 评论 -
ng 父子之间数据通信
一、@ViewChild父组件中使用@ViewChild拿到子组件的变量和方法(父组件可调用子组件的方法和变量)parent.component.ts:import { Component, OnInit, ViewChild } from '@angular/core';import { ChildComponent } from './child.component';...转载 2019-03-19 17:21:39 · 252 阅读 · 0 评论 -
Angular导入导出Excel控件简介
1、SheetJS/js-xlsx官网:https://sheetjs.com/GitHub:https://github.com/sheetjs/js-xlsxSheetJS简化了电子表格阅读,编辑和导出电子表格适用于Web浏览器和服务器支持每种Excel文件格式---------------------作者:dq012来源:优快云...转载 2019-03-20 15:12:30 · 697 阅读 · 0 评论