angular-cn/modules/angular2/test/render/dom
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 feat(compiler): Support $baseUrl in HTML attributes when loading a template. 2015-07-20 15:26:00 -07:00
events feat: remove MapWrapper.contains(). 2015-06-18 14:55:12 -07:00
shadow_dom feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00
view refactor(ProtoViewBuilder): improve error message for dangling bindings 2015-07-16 16:16:49 -07:00
convert_spec.ts feat: remove MapWrapper.create()/get()/set(). 2015-06-18 14:55:12 -07:00
dom_renderer_integration_spec.ts fix(renderer): handle empty fragments correctly 2015-07-16 16:18:58 -07:00
dom_testbed.ts feat(compiler): attach components and project light dom during compilation. 2015-07-15 20:23:27 -07:00