File

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

Index

Methods

Constructor

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

Methods

Public open
open(options?: LocationOptions)
Parameters :
Name Type Optional
options LocationOptions Yes
import {Injectable} from '@angular/core';
import {MatDialogRef} from '@angular/material/dialog/typings/dialog-ref';
import {MatDialog} from '@angular/material/dialog';
import {LocationComponent} from './location.component';
import {LocationOptions} from '@maplander/types';

@Injectable()
export class LocationService {

  constructor(
    private _matDialog: MatDialog
  ) {
  }

  public open(options?: LocationOptions): MatDialogRef<LocationComponent> {
    return this._matDialog.open(LocationComponent, {
      panelClass: 'dialog_location',
      data: options || null,
      width: '40%',
      height: '80%'
    });
  }
}

result-matching ""

    No results matching ""