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