MCPcopy Index your code
hub / github.com/angular/angular / HrefDirective

Class HrefDirective

packages/core/test/linker/security_integration_spec.ts:229–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228 it('should escape unsafe properties if they are used in host bindings', () => {
229 @Directive({
230 selector: '[dirHref]',
231 standalone: false,
232 })
233 class HrefDirective {
234 @HostBinding('href') @Input() dirHref: string | undefined;
235 }
236
237 const template = `<a [dirHref]="ctxProp">Link Title</a>`;
238 TestBed.configureTestingModule({declarations: [HrefDirective]});

Callers

nothing calls this directly

Calls 3

DirectiveClass · 0.90
HostBindingInterface · 0.90
InputInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…