Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { Component } from '@angular/core';
import { ApiService } from './api.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
export class AppComponent {
title = 'app';
constructor(private apiService: ApiService) {
apiService.serviceCall();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment