https://github.com/angular/angular
Raw File
Tip revision: a0b06befb6972e96ce5b724c14a65f5382bd4eee authored by Alex Rickabaugh on 14 July 2017, 20:12:37 UTC
docs: add changelog for 4.3.0
Tip revision: a0b06be
html_parser.ts
/**
 * @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 {CompilerInjectable} from '../injectable';

import {getHtmlTagDefinition} from './html_tags';
import {DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig} from './interpolation_config';
import {ParseTreeResult, Parser} from './parser';

export {ParseTreeResult, TreeError} from './parser';

@CompilerInjectable()
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);
  }
}
back to top