angular-material

ERROR in node_modules/@types/googlemaps/index.d.ts — A tuple type element list cannot be empty

白昼怎懂夜的黑 提交于 2020-08-27 06:41:47
问题 while trying to integrate the angular google maps - agm librarie in my angular project i got this error : somthing is worng with some configuration or maybe something i have missed i m working with material 6 and angular 6 in this project thanks for your help in terminal console ERROR in node_modules/@types/googlemaps/index.d.ts(63,25): error TS1122: A tuple type element list cannot be empty. node_modules/@types/googlemaps/index.d.ts(72,25): error TS1122: A tuple type element list cannot be

ERROR in node_modules/@types/googlemaps/index.d.ts — A tuple type element list cannot be empty

自作多情 提交于 2020-08-27 06:39:28
问题 while trying to integrate the angular google maps - agm librarie in my angular project i got this error : somthing is worng with some configuration or maybe something i have missed i m working with material 6 and angular 6 in this project thanks for your help in terminal console ERROR in node_modules/@types/googlemaps/index.d.ts(63,25): error TS1122: A tuple type element list cannot be empty. node_modules/@types/googlemaps/index.d.ts(72,25): error TS1122: A tuple type element list cannot be

cdkVirtualFor not rendering new items

不问归期 提交于 2020-08-24 12:03:03
问题 I'm building a vertically scrolling calendar. I'm getting the initial days to load, but when new days are added to the list, they aren't being rendered. <cdk-virtual-scroll-viewport class="demo-viewport" [itemSize]="100" (onContentScrolled)="handleScrollChange($event)" > <calendar-day *cdkVirtualFor="let day of days; trackBy: trackByFn" [day]="day" ></calendar-day> </cdk-virtual-scroll-viewport> <button (click)="goToToday()">go</button> I have a service with a BehaviorSubject updating the

cdkVirtualFor not rendering new items

被刻印的时光 ゝ 提交于 2020-08-24 11:59:30
问题 I'm building a vertically scrolling calendar. I'm getting the initial days to load, but when new days are added to the list, they aren't being rendered. <cdk-virtual-scroll-viewport class="demo-viewport" [itemSize]="100" (onContentScrolled)="handleScrollChange($event)" > <calendar-day *cdkVirtualFor="let day of days; trackBy: trackByFn" [day]="day" ></calendar-day> </cdk-virtual-scroll-viewport> <button (click)="goToToday()">go</button> I have a service with a BehaviorSubject updating the

Angular material stepper next step showing create instead of 1

家住魔仙堡 提交于 2020-08-24 05:56:12
问题 I am working on stepper, i want to disable next step until all filled should be filled so i made linear to true in html file <mat-horizontal-stepper [linear]="true" #stepper> <mat-step [stepControl]="firstFormGroup"> <form [formGroup]="firstFormGroup"> it's working fine but whenever i am going to next step, "1" becomes "cre" on inspecting i got i didn't user create anywhere in my code it's coming from mat-icon 回答1: you can set [completed]="false" on mat-step and you will have only numbers

How to toggle Angular material expansion panel programmatically

老子叫甜甜 提交于 2020-08-22 04:22:05
问题 I just started working on an Angular 4 project with material design. I am currently working with the expansion component, the API states that a disabled expansion panel can't be toggled by the user, but can still be manipulated programmatically . I don't know however, how you can toggle your panel programmatically. What is the preferred way in Angular to simulate this? 回答1: expanded is set to true to expand the expansion panel and set to false to close the expansion panel. In the following