mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The options to generate NgFactory and NgSummary files were added to Ivy for backwards compatibility with ViewEngine. Since ViewEngine was deprecated and removed, the NgFactory and NgSummary files are no longer used as well. This commit drops obsolete options to generate NgFactory and NgSummary files. Also, the logic that generates those files is also removed. PR Close #48268
86 lines
2.8 KiB
TypeScript
86 lines
2.8 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
import {ApplicationRef, forwardRef, NgModule} from '@angular/core';
|
|
import {FormsModule} from '@angular/forms';
|
|
import {ServerModule} from '@angular/platform-server';
|
|
import {FlatModule} from 'flat_module';
|
|
// Note: don't refer to third_party_src as we want to test that
|
|
// we can compile components from node_modules!
|
|
import {ThirdpartyModule} from 'third_party/module';
|
|
|
|
import {MultipleComponentsMyComp, NextComp} from './a/multiple_components';
|
|
import {AnimateCmp} from './animate';
|
|
import {BasicComp} from './basic';
|
|
import {ComponentUsingThirdParty} from './comp_using_3rdp';
|
|
import {ComponentUsingFlatModule} from './comp_using_flat_module';
|
|
import {CUSTOM} from './custom_token';
|
|
import {CompWithAnalyzeEntryComponentsProvider, CompWithEntryComponents} from './entry_components';
|
|
import {BindingErrorComp} from './errors';
|
|
import {CompConsumingEvents, CompUsingPipes, CompWithProviders, CompWithReferences, DirPublishingEvents, ModuleUsingCustomElements} from './features';
|
|
import {CompUsingRootModuleDirectiveAndPipe, SomeDirectiveInRootModule, SomeLibModule, SomePipeInRootModule, SomeService} from './module_fixtures';
|
|
import {CompWithNgContent, ProjectingComp} from './projection';
|
|
import {CompForChildQuery, CompWithChildQuery, CompWithDirectiveChild, DirectiveForQuery} from './queries';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AnimateCmp,
|
|
BasicComp,
|
|
CompConsumingEvents,
|
|
CompForChildQuery,
|
|
CompUsingPipes,
|
|
CompUsingRootModuleDirectiveAndPipe,
|
|
CompWithAnalyzeEntryComponentsProvider,
|
|
CompWithChildQuery,
|
|
CompWithDirectiveChild,
|
|
CompWithEntryComponents,
|
|
CompWithNgContent,
|
|
CompWithProviders,
|
|
CompWithReferences,
|
|
DirectiveForQuery,
|
|
DirPublishingEvents,
|
|
MultipleComponentsMyComp,
|
|
NextComp,
|
|
ProjectingComp,
|
|
SomeDirectiveInRootModule,
|
|
SomePipeInRootModule,
|
|
ComponentUsingFlatModule,
|
|
ComponentUsingThirdParty,
|
|
BindingErrorComp,
|
|
],
|
|
imports: [
|
|
ServerModule,
|
|
FormsModule,
|
|
ModuleUsingCustomElements,
|
|
SomeLibModule.withProviders(),
|
|
ThirdpartyModule,
|
|
FlatModule,
|
|
],
|
|
providers: [
|
|
SomeService,
|
|
{provide: CUSTOM, useValue: forwardRef(() => ({name: 'some name'}))},
|
|
],
|
|
entryComponents: [
|
|
AnimateCmp,
|
|
BasicComp,
|
|
CompUsingRootModuleDirectiveAndPipe,
|
|
CompWithAnalyzeEntryComponentsProvider,
|
|
CompWithChildQuery,
|
|
CompWithEntryComponents,
|
|
CompWithReferences,
|
|
ProjectingComp,
|
|
ComponentUsingThirdParty,
|
|
ComponentUsingFlatModule,
|
|
BindingErrorComp,
|
|
]
|
|
})
|
|
export class MainModule {
|
|
constructor(public appRef: ApplicationRef) {}
|
|
|
|
ngDoBootstrap() {}
|
|
}
|