03 2022 档案

摘要:避免生成css ng g c xxx --style=none 数据结构渲染Form表单 import {Validators} from "@angular/forms"; const dateForm = { sex: {value: null, required: true, maxLengt 阅读全文
posted @ 2022-03-27 23:22 猫神甜辣酱 阅读(163) 评论(0) 推荐(1) 编辑
摘要:创建一个angular 应用 ng new <workspace-name> --create-application=false --create-application=false 阻止默认生成一个angular项目 其实不一定要用这种方式, 我感觉我们可以直接新建一个库, 然后进行开发后面进行 阅读全文
posted @ 2022-03-26 10:43 猫神甜辣酱 阅读(108) 评论(0) 推荐(0) 编辑
摘要:https://williamjuan027.github.io/angular-animations-explorer/home 注入模块 BrowserAnimationsModule 来个小案例 @Component({ ... animations: [ trigger('enabledSt 阅读全文
posted @ 2022-03-13 15:24 猫神甜辣酱 阅读(109) 评论(0) 推荐(0) 编辑
摘要:extend 组件的使用 公共的方法,属性 @Component({ selector: 'app-three', templateUrl: './three.component.html', }) export class ThreeComponent { @Input() two = 'bbb' 阅读全文
posted @ 2022-03-09 13:37 猫神甜辣酱 阅读(122) 评论(0) 推荐(0) 编辑
摘要:nz-button的点击效果 我们可以添加给自己的自定义nz-wave指令 我觉得源码不错, 扣过来 nz-wave-renderer.ts /** * Use of this source code is governed by an MIT-style license that can be * 阅读全文
posted @ 2022-03-07 17:52 猫神甜辣酱 阅读(502) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示