
angular
mi_cy
这个作者很懒,什么都没留下…
展开
-
angular 获取Dom
## ViewChild { (#App) viewChild 接收二个参数 ,第二个为 {static :true } 因为 angular8 会计算模板的查询时间 ,static 是静态的意思。 如果使用了 ngif 判断则为动态 {static : false} 1. 获取组件实例( NzComponent , { static:true }) private nz: Nz...原创 2020-02-10 16:48:07 · 639 阅读 · 0 评论 -
angular HtttClient 封装
import { Injectable } from '@angular/core';import { environment } from '../../../environments/environment';import { HttpHeaders, HttpClient, HttpErrorResponse} from '@angular/common/http';...原创 2019-11-29 17:23:15 · 592 阅读 · 0 评论 -
angular路由复用策略
import { ActivatedRouteSnapshot, DetachedRouteHandle, RouteReuseStrategy} from '@angular/router';import { Injectable } from '@angular/core';interface IRouteConfigData { reuse: boolean;}...原创 2019-11-29 17:17:41 · 827 阅读 · 1 评论 -
angular 创建
// 创建Componentng g component my-new-component// 创建指令ng g directive my-new-directive// 创建管道ng g pipe my-new-pipe// 创建服务ng g service my-new-service// 创建类ng g class my-new-class// 创建guardng g ...原创 2019-11-17 10:41:28 · 218 阅读 · 0 评论 -
angular获取当前路由信息
children: [ { path: '', redirectTo: 'houseManage', pathMatch: 'full' }, { path: 'houseManage', data: { title: '楼盘管理' }, ...原创 2019-11-04 14:19:18 · 15209 阅读 · 0 评论 -
angular实现table表格的增删改查
东西有点多,直接上代码地址。自己下载npm i , 启动命令npm run starthttps://github.com/Tom-cy/FLM_admin原创 2019-11-01 11:06:57 · 1335 阅读 · 1 评论