projects/maplander/shared/src/lib/components/address/address.service.ts
Methods |
constructor(_matDialog: MatDialog)
|
||||||
Parameters :
|
open | ||||||
open(address: Address)
|
||||||
Parameters :
Returns :
MatDialogRef<AddressComponent>
|
import { Injectable } from '@angular/core';
import {MatDialog, MatDialogRef} from '@angular/material/dialog';
import {AddressComponent} from './address.component';
import {Address} from '@maplander/types';
@Injectable()
export class AddressService {
constructor(
private _matDialog: MatDialog
) { }
open(address: Address): MatDialogRef<AddressComponent> {
return this._matDialog.open<AddressComponent>(AddressComponent, {
panelClass: 'dialog_location_address',
data: address
});
}
}