Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Create a directive mock #8

@dianjuar

Description

@dianjuar

Useful to implement in test and inject the mock instead of the real one. Could be something like

import { Directive, Input } from '@angular/core';

@Directive({
    selector: '[appSticky]'
})
export class StickyMockDirective {
    @Input() sentinelOn: HTMLElement;
    @Input() classWhenSticky: string;
    @Input() debugMode: boolean;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions