X Tutup
Skip to content

Support preloading of templates, at least for testing #4051

@wardbell

Description

@wardbell

As it stands (alpha-36) one cannot write unit tests of the actual template when the template is supplied via templateUrl.

I can't even fake it if component A's template (even a template override) depends on component B which gets its template via templateUrl. I have been unsuccessful using overrideDirective to mock the dependent component B ... not that I should have to bother.

Could we use something like the Ng1 template-cache?

Metadata

Metadata

Assignees

Labels

area: testingIssues related to Angular testing features, such as TestBedeffort2: daysfeatureLabel used to distinguish feature request from other issuesstate: Needs Design

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup