mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Angular fetches template HTML files outside of the browser's normal parsing flow. As a result, URLs in template files are interpreted relative to the root application, when the components defined by the template files are inserted into the DOM. This change enables a template author to prefix URLs with the string $baseUrl, which will be replaced with the relative base path of the template file. So for an example template loaded from /component/foo/template.html: <img src="$baseUrl/logo.png" /> becomes: <img src="/component/foo/logo.png" /> Addresses #2384. |
||
|---|---|---|
| .. | ||
| compiler_browser_spec.ts | ||
| compiler_common_tests.ts | ||
| compiler_html5lib.server.spec.dart | ||
| directive_parser_spec.ts | ||
| pipeline_spec.ts | ||
| property_binding_parser_spec.ts | ||
| selector_spec.ts | ||
| style_inliner_spec.ts | ||
| style_url_resolver_spec.ts | ||
| text_interpolation_parser_spec.ts | ||
| view_loader_spec.ts | ||
| view_splitter_spec.ts | ||