Error: Can't resolve all parameters for <name-of-component>: (?).
wherein the concerned constructor parameter is BreakpointObserver
. I’ve tried injecting on the spec file, still doesn’t resolve any. I am using v10 of Angular and Angular/Material
this.matDialog
.open<ConfirmationDialogComponent, {
width: '450px',
height: '313px',
}, boolean>(
ConfirmationDialogComponent,
{
disableClose: true
}
)
Hey, has anyone built an apply (submit) style of select component?
I've a multi select that I'd like to only take on apply, rather than as each option is selected.
It feels oddly complex to implement, like I have to maintain a selected field on each option and then apply them on submit?
@talamaska
Hi ppl, I just upgraded my app to angular 10
so far so good
there is one lint warning and a deprecation notice that I'm not sure how to resolve
it seems PortalInjector was deprecated
I'm not really sure how to migrate this snippet
private createInjector(config: ModalConfig, dialogRef: ComponentModalRef): PortalInjector {
const injectionTokens = new WeakMap();
injectionTokens.set(ComponentModalRef, dialogRef);
injectionTokens.set(COMPONENT_MODAL_DATA, config.data);
return new PortalInjector(this.injector, injectionTokens);
}
to use Injector.create
<mat-form-field appearance="outline" class="example-full-width">
<mat-label>Service Charges</mat-label>
<mat-select placeholder="Service Charge" [formControl]="serviceCharges" multiple>
<mat-select-trigger>
<mat-chip-list>
<mat-chip *ngFor="let charge of serviceCharges" [removable]="true" (removed)="onServiceChargeRemoved(charge)">
{{ charge.rate }}
<mat-icon matChipRemove>cancel</mat-icon>
</mat-chip>
</mat-chip-list>
</mat-select-trigger>
<mat-option *ngFor="let serviceCharge of serviceChargeLists" [value]="serviceCharge.rateId" [rate]="serviceCharge.rate">
<span>{{serviceCharge.activityDesc}}</span>
<span class="float-right">({{serviceCharge.rate}})</span>
</mat-option>
</mat-select>
</mat-form-field>
Question: Is there any way to track the Q4 goals that were stated on the README?
https://github.com/angular/components#what-were-working-on-now-q4-2020
In particular I'm curious about the new density theming api: "Introduce a new theming API for component density, a top feature request."