Youdeyiwu
Home
Contents
Articles
More
Messages
My Profile
Create Article
Login Now
Quick Register
English
简体中文
Light
Dark
Auto
[
Two-way binding
]
[
NgModel
]
Angular 中的绑定语法 ”[()]“ 被称为 "香蕉箱子"
它表示着双向绑定:属性绑定和事件绑定的结合
youdeyiwu
26 days
[
Angular
]
[
Input
]
[
Output
]
关于 Angular 中 @Input 和 @Output 装饰器的使用
Angular 中的 @Input 和 @Output 装饰器是用于组件间通信的重要机制。这些装饰器帮助我们将数据从父组件传递到子组件(@Input),以及将事件从子组件传递到父组件(@Output)
youdeyiwu
30 days
[
Assert
]
[
Test
]
[
Jest
]
[
Act
]
[
Arrange
]
编写一个遵循 AAA( Arrange, Act, Assert )模式的简单单元测试
AAA 测试模式是软件测试中的一种模式,它代表 Arrange(安排)、Act(行动)、Assert(断言), 这种模式通常用于单元测试中,以确保测试代码的清晰性和可维护性
youdeyiwu
1 month
[
Template statements
]
模板语句
模板语句是您可以在 HTML 中使用的方法或属性,用于响应用户事件
youdeyiwu
3 months
[
Text interpolation
]
使用插值显示值
插值是指在标记文本中嵌入表达式。默认情况下,插值使用双引号 {{ 和 }} 作为分隔符
youdeyiwu
3 months
[
Structural directives
]
Built-in structural directives 内置结构指令
结构指令负责 HTML 布局。它们通过添加、删除和操作附加到它们的宿主元素来塑造或重塑 DOM 结构
youdeyiwu
3 months
[
Sass Comments
]
[
Comments
]
Sass Comments
使用 Sass 编写样式库时,您可以使用注释来记录库中提供的混合函数、函数、变量和占位选择器,以及库本身
youdeyiwu
3 months
[
Sass
]
[
Sass Partials
]
Sass Partials
您可以创建包含小段 CSS 代码的 Sass Partial 文件,然后在其他 Sass 文件中引用它们
youdeyiwu
3 months
[
Mysql
]
Mysql 数据库创建用户并授予权限
创建用户 / 授予权限 / 检查权限
youdeyiwu
1 month
[
Attribute directives
]
Built-in attribute directives 内置属性指令
更改元素、组件或其他指令的外观或行为
youdeyiwu
3 months
[
Property binding
]
Class and style binding 类和样式绑定
使用类和样式绑定来添加和移除元素的 class 属性中的 css 类名,并动态设置样式
youdeyiwu
3 months
[
Api
]
[
Common
]
*NgFor 指令
NgFor 是一个结构性指令,它为集合中的每个项目渲染一个模板。该指令放置在一个元素上,该元素成为克隆模板的父元素
youdeyiwu
3 months
Load More