angular-material2

    14热度

    4回答

    我有angular2应用程序,它使用@ angular2-material 2.0.0-alpha.8-2版本。一切正常。 现在我决定将素材版本升级到最新版本,即2.0.0-alpha.9-3。我遵循了GETTING_STARTED中提到的步骤。 早些时候,我已经进口了各个模块如下: @NgModule({ imports: [ BrowserModule, FormsMod

    0热度

    1回答

    我使用的是angular2 formsModule和material2 library。 当我试图检查form标签之外form的有效性,我得到一个 error: Cannot read property 'valid' of undefined 的form标签被包裹成md-tab标签,我注意到它取决于这个错误。 错误: <button (click)="check(fooForm.valid)">

    3热度

    3回答

    如何更改material2 md输入占位符的字体大小和颜色? check this image link

    1热度

    3回答

    我希望在占位符值为'可选'时启用我的保存按钮。当值为'强制'时,保存按钮应被禁用并且仅当我为该字段输入某个值时才启用。 我的模板 - <md-input name="" [placeholder]="isOptional()"></md-input> <input type="button" disabled="placeholder==='Mandatory'" value="Save">

    0热度

    1回答

    我试图解决这个问题: https://github.com/angular/material2/issues/1518 我想任何地方点击我的MD-项目的线,它应该触发无线电按钮的动作。 settings.component.html: <md-radio-group [(ngModel)]="lang"> <md-list-item (click)="changeLanguageTo(l

    6热度

    2回答

    我得到以下错误,当我运行我的茉莉组件测试: Error: Error in ./AppComponent class AppComponent - inline template:10:2 caused by: Cannot read property 'unsubscribe' of undefined TypeError: Cannot read property 'unsubscribe'

    1热度

    1回答

    它看起来像Material2没有类似于Material1 opened="$mdMedia('gt-md')"的任何内容,隐藏和显示sidenav取决于屏幕宽度。 https://github.com/angular/material2/issues/45 在平均时间,会是什么,而在我的项目实施这样的特征采取最好的办法。 Plunker

    6热度

    6回答

    Angular2材料团队最近发布了MDDialog https://github.com/angular/material2/blob/master/src/lib/dialog/README.md 我想改变外观和感觉的angular2材料的对话框。例如,要更改弹出式容器的固定大小并使其可滚动,请更改背景颜色,等等。最好的方法是什么?有没有我可以玩的CSS?

    3热度

    1回答

    对于angular2物料项目,md内容不可用。当它可以使用时没有ETA。基本上,我需要一个可滚动溢出的容器。除了wrapper div和设置溢出之外,做这件事的“实质”方法是什么?

    1热度

    2回答

    我已阅读并遵循给出的指示和建议here和here,但仍然无法阻止弹出错误。下面是安装方向,我跟着 这些都是我不断收到 以下的错误是我tsconfig文件 { "compileOnSave": true, "compilerOptions": { "typeRoots": [ "libs/@types" ], "emitDecoratorMetadata": true,