0

My angular application has a few services that are shared throughout the application. In every page, I have a brunch of import statements like this

import {Service1} from '../../services/Service1';
import {Service2} from '../../services/Service2';
import {Service3} from '../../services/Service3';
import {Service4} from '../../services/Service4';

Is there a way in angular that I can combine them like '@angular/core' does? something like this,

import {Service1, Service2, Service3, Service4} from '../../services'
import { Component, OnInit } from '@angular/core';
Ben Phung
  • 168
  • 1
  • 10

0 Answers0