File

src/module/service/mat-layout.service.ts

Index

Methods

Constructor

constructor()

Methods

sayHello
sayHello(name?: String)
Parameters :
Name Type Optional
name String Yes
Returns : string
import { Injectable } from '@angular/core';

@Injectable()
export class MatLayoutService {
  constructor() { }
  sayHello(name?: String) {
    return `Hello ${name || 'Stanger'}!`;
  }
}

result-matching ""

    No results matching ""