I got this problem, I got a web application, and I got a html page, actually, two of them, and now I made a directive (appResizer) that works on both my pages, and in order to improve my code, I want to send a string from the html page to the directive. Can you help me pls?
Here is the code from my 2 pages:
<div appResizer>
...
</div>
Basically, they both have a large div, that I show or hide if needed.
Then I got my directive:
import { Directive, ElementRef, Input, Renderer, OnInit, HostListener,
Output, EventEmitter } from '@angular/core';
@Directive( {
selector: '[appResizer]'
} )
export class ResizerDirective implements OnInit {
//
}
I need to somehow send a sting to the directive, as an input or something... Please help.