Files
angular__angular/tools/example-module/example-module.template
T
Paul Gschwendtner dc859fea2a build: remove example-module from gitignore
In order to work around an Angular Bazel bug where genfiles aren't
properly picked up in the `ng_module` metadata bundler, we need to
check-in the example module into the source-file and use the
example-module as a real source instead of generating it dynamically
through a genfile. This allows us to temporarily fix the examples package
until the bug (https://github.com/angular/angular/issues/30259) is fixed.
2019-05-16 13:20:41 -07:00

43 lines
1.2 KiB
Plaintext

/* tslint:disable */
/**
******************************************************************************
* DO NOT MANUALLY EDIT THIS FILE. THIS FILE IS AUTOMATICALLY GENERATED.
*
* IMPORTANT: Due to a bug with the bazel ng_module rule, this file is now
* checked into the repository. Please rebuild the example module by running
* the following command: "yarn gulp build-examples-module"
*
* BUG: https://github.com/angular/angular/issues/30259
******************************************************************************/
import {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {CommonModule} from '@angular/common';
import {ExampleMaterialModule} from './material-module';
${exampleImports}
export interface LiveExample {
title: string;
component: any;
additionalFiles?: string[];
selectorName?: string;
}
export const EXAMPLE_COMPONENTS: {[key: string]: LiveExample} = ${exampleComponents};
export const EXAMPLE_LIST = ${exampleList};
@NgModule({
declarations: EXAMPLE_LIST,
entryComponents: EXAMPLE_LIST,
imports: [
ExampleMaterialModule,
FormsModule,
ReactiveFormsModule,
CommonModule
]
})
export class ExampleModule { }