import { Component , OnInit } from '@angular/core' ; import { DatabaseService } from '../database.service' ; @ Component ( { selector : 'app-initialization' , templateUrl : './initialization.component.html' , styleUrls : [ './initialization.component.css' ] } ) export class InitializationComponent implements OnInit { constructor ( private database ) { } result = "" ; ngOnInit ( ) { } initial ( ) { this . database . initial ( ) . subscribe ( ( response ) => { this . result = response . msg ; } ) ; } }