- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
如何使按钮/图标/复选框像 Material 1 中那样右对齐:
https://material.angularjs.org/latest/demo/list
我目前( Material 2)有:
<md-list>
<md-list-item *ngFor="let position of cart">
<h3 md-line> {{ position.name }} </h3>
<p md-line>
<span> Line 1 </span>
</p>
<md-icon md-list-icon>delete</md-icon>
</md-list-item>
</md-list>
最佳答案
对于上述内容,解决方案非常简单,只需在您的选择器中省略 mat-list-icon
,Material 就会发挥作用:
<mat-list>
<mat-list-item *ngFor="let position of cart">
<h3 mat-line> {{ position.name }} </h3>
<p mat-line>
<span> Line 1 </span>
</p>
<div> $2.00 </div>
<button mat-icon-button (click)="remove(1)">
<mat-icon class="mat-24">delete</mat-icon>
</button>
</mat-list-item>
</mat-list>
关于angular - md-list-icon 或 md-button 右对齐? (棱 Angular Material 2),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43761644/
我在移动设备上遇到 mat-dilog 问题。在横向的移动设备上,mat-dialog-actions 按钮位于屏幕之外,因此无法关闭对话框。 我想过使用特殊的 css 类在对话框顶部复制操作按钮,但
这是任务: 您的任务是创建一个名为 TestComponent 的简单 Angular 组件,该组件由选择器 test-component 标识 该组件必须具有名为 inputData 的数组类型的输
如何使用 Angular Slick 创建外部箭头?文档并没有真正提供线索。 我已经知道如何用 jQuery 做到这一点,但这并不完全相同,因为 slick 在 Angular 中使用了一个实际的标签
我正在使用 Angular Material dialog在我的应用程序中显示警告消息。 我需要检查一个对话框是否已经像这样打开: private _openDialog() { // if (t
有没有办法使用棱 Angular Material 制作可折叠卡片?似乎是相当受欢迎的东西,但我一直在这里寻找合适的 Angular Material 组件/设置:Angular Material -
所以我已经为我的系统安装了 angular、angular-material、angular-aria、angular-animate 依赖项。我只是想测试一下这个即将到来的造型方法。看来我一开始就卡
我一直在四处寻找 Angular cookie,但一直没能找到如何在 Angular 中实现 cookie 管理。有没有什么方法可以管理 cookie(比如 AngularJS 中的 $ cookie
我将 HMR ( stories configure hmr ) 添加到我的 Angular 项目中,但不是热重载,而是将其完全重载。 更新到angular 8,问题没有解决。 [HMR] Canno
到处都说 markForCheck 只是将当前组件 View 和所有父组件(直到根组件)标记为脏。所以下次 DetectChanges 执行时它会更新 View 。 从这一点上我有两个问题。两者都在组
我正在尝试获取列表中已更改元素的值,但是当检查的属性正确时,我总是得到未定义的值。 HTML {{ label }}
我们在标记中使用“data-test”属性来查询测试中的元素。例如: 我们不希望此属性出现在生产版本中。到目前为止,我找到了一种解决方法来创建一个指令,该指令在运行时删除生产构建的属性。它肯定会花费
有人可以帮我解决问题吗?nf n 我有一组显示在表格中的对象,并且我进行了搜索。每个对象都是表中的一行。主要问题是数组。我们可以随时修改它(可以添加新行、删除现有行和更改表中的值),即使我们搜索某些内
我正在使用 ng-repeat 创建一个带有日程表 block 的表,但有些表的高度小于 tr,我需要它们都具有相同的高度。在每个 td 中,我都有一个修改过的 md-checkbox: Missin
我有一个用棱 Angular Material 制作的导航组件 //COMPONENT TS FILE import { Component } from '@angular/core'; impor
有没有办法将配置对象传递到定义为属性指令的自定义指令中? 我在 Controller 中有一个对象,我想发送给指令: $scope.configObject = { count: 5,
如何使按钮/图标/复选框像 Material 1 中那样右对齐: https://material.angularjs.org/latest/demo/list 我目前( Material 2)有:
我在我的组件 ts 文件中导入了 OpenLayers map ,然后我创建了一个 id = map 的 div block ,其中必须显示 OpenLayers map ,但它没有。当我将 div
我是一名优秀的程序员,十分优秀!