cost 75 ms
错误 TS2707:通用类型“ɵɵDirectiveDeclaration”需要 6 到 8 个类型 arguments - error TS2707: Generic type 'ɵɵDirectiveDeclaration' requires between 6 and 8 type arguments

我使用npm install ngx-infinite-scroll --save命令安装了ngx-infinite-scroll库。 如文档中所提供的。 但是,我在库文件中收到以下错误: Error: node_modules/ngx-infinite-scroll/lib/ngx-infini ...

angular 材质图标在插值前先渲染 - angular material icons renders first before the interpolation

我正在使用 angular 材料做一个 angular 项目,而我使用 mat-icons 它在插值之前一直出现,即使我在插值之后对其进行编码,请在此处输入图像描述我尝试在图标之前或之后输入任何内容,无论如何图标都会排在第一位排序方式 {{sort}} expand_more ...

我的 JHIPSTER 应用程序中的依赖项问题 - problem with dependencies in my JHIPSTER application

我生成了一个 jhipster 项目,但我的内置依赖项有问题(priemeng 和 angular 材料)jhipster 7.0.1,我的 package.json 我认为这是与集成依赖项的版本有关的问题,我正在尝试使这些依赖项与 angular 的版本兼容这里有什么问题? 我还应该做什么? ...

MatDialog 未在 angular 中的自定义 OverlayContainer 内呈现 15 - MatDialog not rendering inside custom OverlayContainer in angular 15

在 Angular 15 中,如果一个组件提供了 OverlayContainer 并被覆盖以将其用作自定义容器元素,则各个覆盖元素不会在容器内呈现 (),而是附加到文档主体(默认行为)。 当前行为: https://stackblitz.com/edit/angular-pfwikb?file ...

如何使用 Material 15.1.2 在 mat-nav-list 中将 mat-list-item 与 mat-icon 居中 - how to center mat-list-item with mat-icon in mat-nav-list with Material 15.1.2

我无法让我的锚文本和图标看起来以 Material 15.1.2 为中心我的布局如下所示: 最终结果如下所示: 我认为较新的版本在使用 block 之前使用 flex。 图标似乎也为 24px,但封闭框稍大一些,为 31px。 尝试使用填充移动文本会强制整个块向上移动,我无法向上移动锚文本。 有任 ...

嵌套模块中声明的组件没有应用材料 styles - Component declared in nested module doesn't have material styles applied

在图片中,您可以看到一个按钮在两个位置添加了完全相同的标记。 绿色按钮添加到我的app.component.html中,它在根app.module.ts中声明。 该模块也是我导入MatButtonModule和嵌套TodosModule的地方。 红色框包含我的todos.component.htm ...

探索 Angular Material Stepper 以组件为输入的可能性 - Exploring possibility of Angular Material Stepper taking component as input

我是 angular 的新手,我一直在玩 Stepper function。 问题陈述: 我正在尝试创建一个 Stepper 高阶组件,它将接受组件作为输入(对于每个步骤)并呈现。 目标是我将能够传入各种组件并渲染它们。 https://material.angular.io/components ...

创建可重复使用的 Angular 具有分页、过滤和排序功能的材料表 - Creating reusable Angular Material table with pagination, filtering and sorting

我在我的项目中使用 Angular 材料。 我将在我的项目中使用很多表,并且由于该项目的高度复杂性,我想使用可重用的表以避免代码重复。 我试图创建一个没有过滤和分页的可重用表: 表.component.html 表.component.ts 表列.ts 我想添加服务器端分页、过滤和排序。 我的 AP ...

为什么许多 Material 元素会出现此错误? - “不是已知元素” - why are many of the Material elements giving this error? - "Not a known element"

我继承了这个应用程序,我正在升级到各种 angular 版本,我得到了可怕的材料项目“不是已知元素” 我查看了其他各种问题和答案,我很想说他们已经解决了我的问题,但我在这里...... 在我的 admin.module.ts 中: 不知道我还缺少什么。 我确实看到了关于 LazyLoading 的 ...

覆盖Angular素材输入栏label中星号的默认颜色 - Override the default color of the asterisk in the label of an Angular material input field

我的 web 应用程序中有 angular 材料日期选择器控件。 默认情况下,它通过在 mat-label 后面放置“星号”来显示日期字段是必填的。 下面的代码说明了这种情况: ...所以它在屏幕上看起来像这样: 我希望星号(星号)显示为red 。 我试过这个 css: ...但它不起作用。 ...

将属性特异性应用于 Angular CSS 选择器? - Applying attribute specificity to an Angular CSS Selector?

在此演示中, el_select指令用于更改 Angular Material Select 组件的样式。 这是演示 html 模板: 我还尝试使用样式表来应用非动态的 styles。 如果我像这样使用 class custom-field应用 styles,它会起作用: 有用。 但是,如果我更改 ...

如何将文本 label 包裹在 mat-slide-toggle(角度材料)中 - How to wrap text label in mat-slide-toggle (Angular Material)

我想使用 mat-slide-toggle,但要将标题换行(因为它有点长)。 我怎样才能做到这一点。 我只想让标题换行并将其默认位置保留在切换按钮的右侧 我试过flex-wrap但没有用 你可以看到措辞是如何从容器外面出来的 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM