When the `enableLegacyTemplate` is set to `false`, `<template>` tags and the `template` attribute are no more used to define angular templates but are treated as regular tag and attribute. The default value is `true`. In order to define a template, you have to use the `<ng-template>` tag. This option applies to your application and all the libraries it uses. That is you should make sure none of them rely on the legacy way to defined templates when this option is turned off (`false`).
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. 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
|
|
*/
|
|
|
|
export interface AotCompilerOptions {
|
|
debug?: boolean;
|
|
locale?: string;
|
|
i18nFormat?: string;
|
|
translations?: string;
|
|
useViewEngine?: boolean;
|
|
enableLegacyTemplate?: boolean;
|
|
}
|