
After this, neither @angular/compiler nor @angular/comnpiler-cli depend on @angular/core. This add a duplication of some interfaces and enums which is stored in @angular/compiler/src/core.ts BREAKING CHANGE: - `@angular/platform-server` now additionally depends on `@angular/platform-browser-dynamic` as a peer dependency. PR Close #18683
24 lines
805 B
TypeScript
24 lines
805 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
|
|
*/
|
|
|
|
import {getHtmlTagDefinition} from './html_tags';
|
|
import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from './interpolation_config';
|
|
import {ParseTreeResult, Parser} from './parser';
|
|
|
|
export {ParseTreeResult, TreeError} from './parser';
|
|
|
|
export class HtmlParser extends Parser {
|
|
constructor() { super(getHtmlTagDefinition); }
|
|
|
|
parse(
|
|
source: string, url: string, parseExpansionForms: boolean = false,
|
|
interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG): ParseTreeResult {
|
|
return super.parse(source, url, parseExpansionForms, interpolationConfig);
|
|
}
|
|
}
|