prepare method
Implementation
@override
FutureOr<void> prepare() async {
var template = await (element as _TemplateDocumentElement)._templateFuture!;
if (template == null) {
throw TemplateNotFoundError((element.component as TemplateDocument).name);
}
this.template = template;
return super.prepare();
}