In a component I can use OnInit
by importing it:
import { OnInit } from '@angular/core';
I don't need to know the exact location of the OnInit
source.
Angular/core has a way to hide the exact location.
I want to create a feature-module 'general' that contains interface 'MyInterface', and be able to use it in other modules by importing it like
import { MyInterface } from 'general';
What should I do to hide the exact location of MyInterface? Some index-file?