-
0 votesanswersviews
如何使用Renderer2将样式应用于ElementRef的子节点 - > Angular中的nativeElement
假设我有以下角度模板: <p class="margin0 text-overflow table-cell" #ParentP> <span id="managerDisplayName" #FirstSpan class="bold" title="{{ someBinding 1}}">... -
0 votesanswersviews
在角度服务中使用“ElementRef”时出错
错误错误:未捕获(在承诺中):错误:StaticInjectorError(AppModule)[ElementRef]:StaticInjectorError(Platform:core)[ElementRef]:NullInjectorError:没有ElementRef的提供者!错误:StaticInjectorError(AppModule)[ElementRef]:StaticInje...