angular-cn/modules/angular2/test/render/dom/compiler
Alex Rickabaugh e94270946a feat(compiler): Support $baseUrl in HTML attributes when loading a template.
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.
2015-07-20 15:26:00 -07:00
..
compiler_browser_spec.ts refactor(render): ts’ify tests 2015-05-26 09:38:26 -07:00
compiler_common_tests.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
compiler_html5lib.server.spec.dart feat(render): add initial implementation of render layer 2015-04-01 16:50:22 -07:00
directive_parser_spec.ts feat(render): don’t use the reflector for setting properties 2015-06-22 18:35:16 -07:00
pipeline_spec.ts feat: remove MapWrapper.contains(). 2015-06-18 14:55:12 -07:00
property_binding_parser_spec.ts fix(compiler): detect and strip data- prefix from bindings 2015-07-02 17:32:12 +02:00
selector_spec.ts chore: kill ListWrapper.create() and .push(). 2015-06-17 16:21:55 -07:00
style_inliner_spec.ts refactor(Compiler): inline styles before compiling the template 2015-06-24 18:40:03 +02:00
style_url_resolver_spec.ts refactor(TemplateLoader): rename to ViewLoader 2015-06-24 18:40:04 +02:00
text_interpolation_parser_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
view_loader_spec.ts feat(compiler): Support $baseUrl in HTML attributes when loading a template. 2015-07-20 15:26:00 -07:00
view_splitter_spec.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00