Discussion for angular (2+) - need help? create a stackblitz with your issue to get help faster using this template: https://stackblitz.com/fork/angular-issue-repro2
<ng-sidebar-container
class="ng-sidebar-container"
id="WidgetDateRange"
style="display: contents"
[style.visibility]="_WidgetDateRangeOpened ? 'visible' : 'hidden'"
>
xliffmerge
and not angular
@jorrit-wehelp the unicode is not rendering in HTML, I am just doing a test and the extraction tool of angular just remove it
in html<div i18n="@@test">:provider_count Anbieter gefunden für Über­weisungen &zwischen :to_country_name und :from_country_name. Jetzt vergleichen</div>
generated xlf translation:<source>:provider_count Anbieter gefunden für Überweisungen &zwischen :to_country_name und :from_country_name. Jetzt vergleichen</source>
strange
­
is an invisible character that say where a word can be break
Hi, I have an issue with ViewContainers.
I have a custom structural directive = eg “permissionAccess" it selects data from my NGRX store and looks for matching permissions.
If no permission it clears the ViewContainer,
If has permission if Rebuilds the ViewContainer using the injected TemplateRef
(This all works fine - I have tested with Dom elements, Components, Views)
But… it fails to rebuild the ViewContainer if any of the Dom contains ngIf directives.
Anyone know why this would happen?? I have no idea!
It even fails with the "*ngIf=“true”"
Template Example Works:
<div *cwbPermission=“'ADMIN'">
<p>test container</p>
<div>
<p>Nested container1</p>
<div>
<p>Nested container2</p>
</div>
</div>
</div>
Template Example Fails:
<div *cwbPermission=“'ADMIN'">
<p>test container</p>
<div *ngIf=“true">
<p>Nested container1</p>
<div>
<p>Nested container2</p>
</div>
</div>
</div>
/**
* Creates the template content
*/
showContent(): void {
this.viewContainer.remove();
this.viewContainer.createEmbeddedView(this.templateRef, this.context, 0);
this.cdref.detectChanges();
}
[
Validators.required,
Validators.minLength(9),
Validators.maxLength(32)
]
But it only gives me the required error
isControlHasError(controlName: string, validationType: string): boolean {
const control = this.userForm.controls[controlName];
if (!control) {
return false;
}
const result =
control.hasError(validationType) &&
(control.dirty || control.touched);
return result;
}
<div *ngIf="heroForm.errors?.identityRevealed && (heroForm.touched || heroForm.dirty)" class="cross-validation-error-message alert alert-danger">
Name cannot match alter ego.
</div>