import { MultiLingualData } from "../core/multilingual-data" ; export abstract class BaseDirective { private subscriptionId : number ; protected subscribe ( func ) { this . subscriptionId = MultiLingualData . subscribe ( func ) ; } destroy ( ) { MultiLingualData . unsubscribe ( this . subscriptionId ) ; } }