Skip to content

feat(mobile): support templateUrl and styleUrls with App Shell prerender #810

@jeffbcross

Description

@jeffbcross

Right now, apps built with the --mobile flag require that any directives included in the pre-rendered App Shell only use inline templates and styles. This is due to a combination of broccoli trees, module.id, and universal not looking in the right place to get templates. Because of Broccoli's symlinking (I think), when the App Shell plugin is compiling the root component, the module.id is resolving to a path within the typescript plugin's tree, which only contains JS files (not the component's html and css files).

A solution should be implemented to make it simple to use templateUrl and styleUrls with App Shell components.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenteffort1: easy (hours)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions