File

projects/maplander/shared/src/lib/components/address/address.service.ts

Index

Methods

Constructor

constructor(_matDialog: MatDialog)
Parameters :
Name Type Optional
_matDialog MatDialog No

Methods

open
open(address: Address)
Parameters :
Name Type Optional
address Address No
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
    });
  }
}

result-matching ""

    No results matching ""