我正在创建一个模块,由于某种原因,它在别名类型导出。我到处搜寻,找不到答案。该模块如下所示:
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'
import { FormsModule } from '@angular/forms';
import { PhoneMaskDirective } from './directives/phone-mask.directive';
import { ZipCodeMaskDirective } from './directives/zip-code-mask.directive';
import { DateFormatPipe } from './pipes/date-format.pipe';
import { PhonePipe } from './pipes/phone.pipe';
import { ZipCodePipe } from './pipes/zipcode.pipe';
import { AddressComponent } from './address/address.component';
import { EmailComponent } from './email/email.component';
import { PhoneComponent } from './phone/phone.component';
@NgModule({
imports: [
CommonModule,
FormsModule,
],
declarations: [
DateFormatPipe,
PhonePipe,
ZipCodePipe,
PhoneMaskDirective,
ZipCodeMaskDirective,
AddressComponent,
EmailComponent,
PhoneComponent
],
exports: [
DateFormatPipe,
PhonePipe,
ZipCodePipe,
PhoneMaskDirective,
ZipCodeMaskDirective,
AddressComponent,
EmailComponent,
PhoneComponent
]
})
export class MyModule { }
export * from './address/address-validation-messages';
export * from './address/address-view-properties';
export * from './email/email-validation-messages';
export * from './email/email-view-properties';
export * from './phone/phone-validation-messages';
export * from './phone/phone-view-properties';
出现的另一端看起来像这样:
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
export { AddressComponent as ɵk } from './address/address.component';
export { PhoneMaskDirective as ɵh } from './directives/phone-mask.directive';
export { ZipCodeMaskDirective as ɵj } from './directives/zip-code-mask.directive';
export { EmailComponent as ɵl } from './email/email.component';
export { PhoneComponent as ɵm } from './phone/phone.component';
export { DateFormatPipe as ɵc } from './pipes/date-format.pipe';
export { PhonePipe as ɵd } from './pipes/phone.pipe';
export { ZipCodePipe as ɵg } from './pipes/zipcode.pipe';
为什么类型会被别名?